-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (75 loc) · 2.34 KB
/
docker-compose.yml
File metadata and controls
81 lines (75 loc) · 2.34 KB
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
78
79
80
81
services:
watchtower:
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/timezone:/etc/timezone:ro
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_LABEL_ENABLE=true
- WATCHTOWER_INCLUDE_RESTARTING=true
- WATCHTOWER_POLL_INTERVAL=60 #poll every 60 seconds
- TZ=Europe/Berlin
labels:
- "com.centurylinklabs.watchtower.enable=true"
production:
image: ghcr.io/inab/bench_event_api:${BENCH_EVENT_API_TAG:-latest}
build:
context: .
ports:
- '${PROD_PORT:-5000}:5000'
volumes:
- ./flask_app.py.json.prod:/usr/src/app/flask_app.py.json:ro
- ./flask_app.py.json.prod.auth:/usr/src/app/flask_app.py.json.auth:ro
labels:
- "com.centurylinklabs.watchtower.enable=true"
# This one is only used for development and local testing purposes
nginx_production:
image: docker.io/library/nginx:1.27
profiles:
- nginx
depends_on:
- production
ports:
- '8080:80'
volumes:
- ./conf/nginx.default.conf:/etc/nginx/conf.d/default.conf:ro
preprod:
image: ghcr.io/inab/bench_event_api:${BENCH_EVENT_API_TAG:-latest}
build:
context: .
ports:
- '${PREPROD_PORT:-5001}:5000'
volumes:
- ./flask_app.py.json.preprod:/usr/src/app/flask_app.py.json:ro
- ./flask_app.py.json.preprod.auth:/usr/src/app/flask_app.py.json.auth:ro
labels:
- "com.centurylinklabs.watchtower.enable=true"
test1:
image: ghcr.io/inab/bench_event_api:${BENCH_EVENT_API_TAG:-latest}
build:
context: .
ports:
- '${TEST1_PORT:-5002}:5000'
volumes:
- ./flask_app.py.json.test1:/usr/src/app/flask_app.py.json:ro
- ./flask_app.py.json.test1.auth:/usr/src/app/flask_app.py.json.auth:ro
labels:
- "com.centurylinklabs.watchtower.enable=true"
test2:
image: ghcr.io/inab/bench_event_api:${BENCH_EVENT_API_TAG:-latest}
build:
context: .
ports:
- '${TEST2_PORT:-5003}:5000'
volumes:
- ./flask_app.py.json.test2:/usr/src/app/flask_app.py.json:ro
- ./flask_app.py.json.test2.auth:/usr/src/app/flask_app.py.json.auth:ro
labels:
- "com.centurylinklabs.watchtower.enable=true"
networks:
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: ${MTU:-1500}