-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
65 lines (59 loc) · 1.36 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
version: '3.8'
services:
web:
image: ghcr.io/metaconfigurator/meta_configurator:latest
ports:
- "80:80" # Map port 80 on the host to port 80 in the container
- "443:443" # Map port 443 on the host to port 443 in the container, if using HTTPS
restart: unless-stopped
depends_on:
- backend
networks:
- app-network
backend:
build: ./backend
ports:
- "5000:5000"
restart: unless-stopped
depends_on:
- mongo
- redis
networks:
- app-network
environment:
FLASK_ENV: development
MONGO_USER: root
MONGO_PASS: ${MONGO_PASSWORD}
MONGO_HOST: mongo
MONGO_PORT: 27017
MONGO_DB: metaconfigurator
REDIS_URL: redis://redis:6379/0
REDIS_PASS: ${REDIS_PASSWORD}
mongo:
image: mongo:latest
container_name: mongo
ports:
- "27017:27017"
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
MONGO_INITDB_DATABASE: metaconfigurator
volumes:
- mongo-data:/data/db
networks:
- app-network
redis:
image: redis:latest
ports:
- "6379:6379"
restart: unless-stopped
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
mongo-data: