-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
98 lines (98 loc) · 2.19 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "3.5"
services:
timeline-db:
image: postgres:14
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=timeline
- POSTGRES_PASSWORD=postgres
volumes:
- db_persistence:/var/lib/postgresql/data
restart: unless-stopped
timeline-backend:
build: backend
environment:
- BACKEND_DEBUG
- BACKEND_SECRET_KEY
- FRONTEND_CLIENT_ID
- FRONTEND_DOMAIN
- GEOLOCATION_CLIENT_ID
- GEOLOCATION_CLIENT_SECRET
depends_on:
- timeline-db
volumes:
- ./backend/source:/usr/src/app
- archives:/data/archives
- backups:/data/backups
- previews:/assets/previews
- backend_staticfiles:/assets/static
- ssh_keys:/root/.ssh
logging:
options:
max-size: "200k"
max-file: "10"
restart: unless-stopped
timeline-frontend:
build:
context: frontend
args:
- FRONTEND_CLIENT_ID
- FRONTEND_DOMAIN
- GOOGLE_MAPS_API_KEY
volumes:
- ./frontend/source:/usr/share/nginx/html:ro
depends_on:
- timeline-backend
logging:
driver: "none"
restart: unless-stopped
mqtt-broker:
build: mqtt-broker
environment:
- MQTT_USERNAME
- MQTT_PASSWORD
volumes:
- mqtt_persistence:/mosquitto/data
ports:
- 1883:1883
restart: unless-stopped
geolocation-client:
build: geolocation-client
environment:
- MQTT_USERNAME
- MQTT_PASSWORD
- GEOLOCATION_CLIENT_ID
- GEOLOCATION_CLIENT_SECRET
depends_on:
- mqtt-broker
- timeline-backend
volumes:
- ./geolocation-client/source:/usr/src/app
logging:
options:
max-size: "200k"
max-file: "10"
restart: unless-stopped
proxy:
build: proxy
depends_on:
- timeline-frontend
- timeline-backend
volumes:
- archives:/data/archives
- backups:/data/backups
- previews:/assets/previews
- backend_staticfiles:/assets/static
logging:
options:
max-size: "200k"
max-file: "10"
restart: unless-stopped
volumes:
db_persistence:
mqtt_persistence:
backups:
archives:
previews:
ssh_keys:
backend_staticfiles: