-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose-alerts.yml
68 lines (63 loc) · 1.78 KB
/
docker-compose-alerts.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
version: '3.7'
services:
python-alerts-backend:
image: "ghcr.io/flightaware/aeroapps/python-alerts-backend:${AEROAPPS_VERSION:-latest}"
volumes:
- "aeroapi_alerts:/var/db/aeroapi_alerts"
profiles: ["python"]
build:
context: .
dockerfile: alerts_backend/python/Dockerfile
networks:
internal:
aliases:
- alerts-backend
environment:
- AEROAPI_KEY=${AEROAPI_KEY:?AEROAPI_KEY variable must be set}
logging:
driver: "json-file"
options:
max-size: "10mb"
max-file: "5"
# Create separate Docker service to handle only POST requests to server, default port is 8081
# Note that the port mapped is 5000 instead of 80, and the endpoint URL MUST use /post, not /api/post
python-alerts-endpoint-backend:
image: "ghcr.io/flightaware/aeroapps/python-alerts-backend:${AEROAPPS_VERSION:-latest}"
volumes:
- "aeroapi_alerts:/var/db/aeroapi_alerts"
profiles: [ "python" ]
build:
context: .
dockerfile: alerts_backend/python/Dockerfile
ports:
- "${POST_PORT:-8081}:5000"
networks:
internal:
aliases:
- alerts-backend
environment:
- AEROAPI_KEY=${AEROAPI_KEY:?AEROAPI_KEY variable must be set}
logging:
driver: "json-file"
options:
max-size: "10mb"
max-file: "5"
alerts-frontend:
image: "ghcr.io/flightaware/alerts_frontend/alerts-frontend:${ALERTS_VERSION:-latest}"
profiles: ["python"]
ports:
# Port upon which to serve webapp
- "${WEB_SERVER_PORT:-8080}:80"
networks:
- internal
logging:
driver: "json-file"
options:
max-size: "10mb"
max-file: "5"
networks:
internal:
volumes:
aeroapi_alerts:
name: aeroapi_alerts
external: false