-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
77 lines (68 loc) · 1.46 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
version: '3'
services:
db:
container_name: middleware_db
image: postgres
restart: always
env_file:
- ./.env
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:latest
container_name: redis
restart: always
ports:
- "6379:6379"
# rtsptoweb:
roverr_rtsp_stream:
restart: always
image: ghcr.io/deepch/rtsptoweb:latest
container_name: roverr_rtsp_stream
volumes:
- ./RtspConfig.json:/config/config.json
ports:
- "8080:8080"
# teleicu_middleware
teleicu_middleware:
restart: always
build:
dockerfile: dev.Dockerfile
container_name: teleicu_middleware
command: ["python", "manage.py" , "runserver" , "0.0.0.0:8090"]
volumes:
- .:/app
depends_on:
- redis
- roverr_rtsp_stream
- db
env_file:
- ./.env
ports:
- "8090:8090"
# proxies requests to internal services
reverse-proxy:
restart: always
image: ghcr.io/coronasafe/teleicu_nginx/teleicu_nginx:latest
container_name: reverse-proxy
depends_on:
- teleicu_middleware
ports:
- "8001:8001"
celery:
build:
dockerfile: dev.Dockerfile
container_name: celery_worker
command: ["sh", "-c", "/app/start-celery.sh"]
volumes:
- .:/app
env_file:
- ./.env
depends_on:
- redis
- db
- teleicu_middleware
volumes:
postgres-data: