-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.override.yml
76 lines (70 loc) · 1.82 KB
/
compose.override.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
66
67
68
69
70
71
72
73
74
75
76
# See: https://docs.docker.com/compose/multiple-compose-files/merge/
services:
reverse-proxy:
restart: unless-stopped
environment:
TRAEFIK_LOG_LEVEL: "DEBUG"
TRAEFIK_CERTIFICATESRESOLVERS_RESOLVER0_ACME_CASERVER: "https://acme-staging-v02.api.letsencrypt.org/directory"
TRAEFIK_API_DASHBOARD: "true"
TRAEFIK_API_INSECURE: "true"
ports:
- "8082:8082"
- "8080:8080"
volumes:
- ./letsencrypt:/letsencrypt
swagger-ui:
environment:
URLS: >
[
{"name": "HTTPS-latest", "url": "https://${APP_DOMAIN_NAME:?}/api/latest/specification.json"},
{"name": "HTTPS-v1", "url": "https://${APP_DOMAIN_NAME:?}/api/v1/specification.json"}
]
frontend:
restart: unless-stopped
build:
target: development
environment:
DRIFT_MONITOR_SCHEME: http
DRIFT_MONITOR_HOST: backend-latest
DRIFT_MONITOR_PORT: 5000
ports:
- "8501:8501"
- "5679:5678"
volumes:
- ./frontend:/srv
backend-latest:
restart: unless-stopped
build:
target: development
ports:
- "5000:5000"
- "5678:5678"
volumes:
- ./backend/app:/srv/app
environment:
FLASK_DEBUG: 1
APP_DATABASE_NAME: test-data
backend-v1:
restart: unless-stopped
build:
target: production
ports:
- "5001:5000"
volumes:
- ./backend/app:/srv/app
environment:
FLASK_DEBUG: 1
APP_DATABASE_NAME: test-data
database:
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- ./sandbox/load-database.sh:/docker-entrypoint-initdb.d/load-db.sh:ro
- ./sandbox/database:/tmp/database
- ./data/db:/data/db
environment:
MONGO_INITDB_DATABASE: test-data
secrets:
database_password:
file: sandbox/secrets/app_database_password