-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (51 loc) · 1.14 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
version: "3.8"
services:
# holds dictionary objects and matches to users.
db:
image: mongo:4.0-xenial
container_name: mongo
ports:
- 27017:27017
volumes:
- styktin:/data/db
restart: on-failure
# crunches queries and between frontend and db.
dic-fulfillment:
build: ./dic-fulfillment
container_name: dic-fulfillment
environment:
MONGO_URL: mongodb://db/
FLASK_APP: main
FLASK_DEBUG: 1
ports:
- 5000:5000
env_file: .env
volumes: ['./dic-fulfillment:/home/app']
restart: on-failure
# next.js app front-end.
frontend:
build: ./frontend
container_name: frontend
ports:
- 3000:3000
volumes:
- ./frontend:/home/frontend
- /home/frontend/node_modules
- /home/frontend/.next
- /home/pages
env_file: .env
restart: always
# routes queries to appropriate points.
reverse-proxy:
image: nginx:1.23.1
container_name: nginx
depends_on:
- dic-fulfillment
- frontend
volumes:
- ./reverse-proxy/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
restart: on-failure
volumes:
styktin: