-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (71 loc) · 1.48 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3.8"
services:
frontend:
container_name: lp-toolkit-frontend
build:
context: frontend
ports:
- 3000:3000
volumes:
- ./frontend:/usr/src/app
restart: unless-stopped
networks:
- react-express
depends_on:
- backend
backend:
container_name: lp-toolkit-backend
build:
context: backend
ports:
- 5050:5050
volumes:
- ./backend:/usr/src/app
environment:
- MONGO_URI=mongodb://mongo:27017/lp-toolkit
restart: unless-stopped
networks:
- express-mongo
- react-express
depends_on:
- mongo
langchain:
container_name: lp-toolkit-langchain
build: ./langchain
ports:
- 8000:8000
volumes:
- ./langchain/app:/usr/src/app
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
restart: unless-stopped
networks:
- express-mongo
- react-express
depends_on:
- mongo
proxy:
image: nginx
container_name: lp-toolkit-proxy
restart: unless-stopped
ports:
- 80:80
depends_on:
- frontend
- backend
volumes:
- ./proxy/nginx.proxy.conf:/etc/nginx/conf.d/default.conf
networks:
- react-express
mongo:
container_name: lp-toolkit-mongo
image: mongo:4.2.0
volumes:
- ./data:/data/db
restart: unless-stopped
networks:
- express-mongo
networks:
react-express:
express-mongo: