forked from clearlinux/telemetrics-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
91 lines (83 loc) · 1.89 KB
/
docker-compose.yaml
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
version: '3.7'
services:
db:
image: postgres:latest
networks:
- backend
env_file:
- ./services/testing.env
nginx:
image: telemetry/proxy:1.0
networks:
- frontend
volumes:
- "telemetry-socket-volume:/var/run/uwsgi/"
build:
context: ..
dockerfile: ./deployments/services/nginx/Dockerfile
ports:
- 80:80
- 443:443
redis:
image: redis:latest
networks:
- backend
env_file:
- ./services/testing.env
collector:
image: telemetry/collector:1.0
networks:
- backend
volumes:
- "telemetry-socket-volume:/var/www/collector/socket"
build:
context: ..
dockerfile: ./deployments/services/collector/Dockerfile
env_file:
- services/testing.env
depends_on: ["db", "redis"]
command: uwsgi --ini /var/www/collector/collector.ini
webapp:
image: telemetry/webapp:1.0
networks:
- backend
volumes:
- "telemetry-socket-volume:/var/www/webapp/socket"
build:
context: ..
dockerfile: ./deployments/services/webapp/Dockerfile
env_file:
- ./services/testing.env
depends_on: ["db", "redis"]
command: uwsgi --ini /var/www/webapp/webapp.ini
process:
image: telemetry/process:1.0
networks:
- backend
build:
context: ..
dockerfile: ./deployments/services/processing/Dockerfile
env_file:
- ./services/testing.env
depends_on: ["db", "migrate"]
command: /srv/processing/run.sh
migrate:
image: telemetry/webapp:1.0
networks:
- backend
env_file:
- ./services/testing.env
environment:
FLASK_APP: /var/www/webapp/run.py
working_dir: /var/www/webapp
depends_on: ["db"]
restart: on-failure
command: flask db upgrade
volumes:
telemetry-socket-volume:
networks:
frontend:
driver: bridge
backend:
driver: overlay
internal: true