forked from Zeecka/AperiSolve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (47 loc) · 886 Bytes
/
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
version: "3.8"
services:
web:
build: web
restart: always
container_name: aperisolve_web
volumes:
- ./web:/app
ports:
- "5000:5000"
env_file:
- .env
depends_on:
- mongodb
networks:
- frontend
- backend
backend:
build: backend
restart: always
container_name: aperisolve_back
volumes:
- ./backend:/app
- ./web/static/uploads:/app/uploads
env_file:
- .env
depends_on:
- mongodb
networks:
- backend
mongodb:
image: mongo:4.0.8
container_name: mongodb
restart: unless-stopped
command: mongod --auth
env_file:
- .env
volumes:
- ./mongo/data:/data/db
- ./mongo/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
networks:
- backend
networks:
frontend:
driver: bridge
backend:
driver: bridge