-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathdocker-compose.yml
48 lines (46 loc) · 1.02 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
services:
web:
image: ghcr.io/zeecka/aperisolve-web:v2.2
container_name: aperisolve_web
volumes:
- aperisolve-data:/app/static/uploads
ports:
- "5000:5000"
env_file:
- .env
depends_on:
- mongodb
networks:
- frontend
- backend
backend:
image: ghcr.io/zeecka/aperisolve-backend:v2.2
container_name: aperisolve_back
volumes:
- aperisolve-data:/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:
- aperisolve-db:/data/db
- ./mongo/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
networks:
- backend
networks:
frontend:
driver: bridge
backend:
driver: bridge
volumes:
aperisolve-data: # All uploads will be stored in this volume
aperisolve-db: # All mongo db related data will be stored in this volume