-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
148 lines (136 loc) · 3 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: '3'
services:
nginx:
image: maplegend/mof-nginx:master
networks:
- main
depends_on:
- web
- distributor
ports:
- 80:80
- 443:443
- 9001:9001
- 4321:4321
web:
env_file:
- ./service.env
- ./web.env
- ./db.env
- ./secret.env
image: rg.nl-ams.scw.cloud/minuteoffame/minute-of-fame:master
command: /bin/sh -c "python manage.py migrate && python manage.py createcachetable && python manage.py runserver 0.0.0.0:8000"
restart: always
hostname: web
environment:
- RHOST=redis
- NODE_ENV=production
networks:
- main
depends_on:
- db
distributor:
restart: always
env_file:
- ./service.env
- ./secret.env
image: rg.nl-ams.scw.cloud/minuteoffame/websocket-distributor:master
hostname: distributor
networks:
- main
depends_on:
- web
chat:
restart: always
env_file:
- ./service.env
image: rg.nl-ams.scw.cloud/minuteoffame/mof-chat:master
hostname: chat
networks:
- main
depends_on:
- distributor
queue:
restart: always
env_file:
- ./service.env
image: rg.nl-ams.scw.cloud/minuteoffame/mof-queue:master
hostname: queue
networks:
- main
depends_on:
- distributor
poll:
restart: always
env_file:
- ./service.env
image: rg.nl-ams.scw.cloud/minuteoffame/mof-poll:master
hostname: chat
networks:
- main
depends_on:
- distributor
multi_connection:
image: maplegend/multi_connection:master
command: node server --port 9001
restart: always
hostname: multi_connection
networks:
- main
db:
env_file:
- ./db.env
image: postgres
restart: always
hostname: db
networks:
- main
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./db_data:/var/lib/postgresql/
kurento:
hostname: kurento
image: maplegend/kurento:latest
restart: always
network_mode: host
environment:
- KMS_STUN_IP=51.15.91.233
- KMS_STUN_PORT=3478
- KMS_MIN_PORT=40000
- KMS_MAX_PORT=50000
#- KMS_TURN_URL=username:password@51.15.64.125:3478
#- KMS_EXTERNAL_ADDRESS=51.15.64.125
#- KMS_TURN_URL=username:password@51.15.64.125:3478
volumes:
- ./recs:/recs
- ./tst.mp4:/tst.mp4
depends_on:
- coturn
coturn:
image: instrumentisto/coturn
network_mode: host
restart: always
volumes:
- ${PWD}/turnserver.conf:/etc/turnserver.conf
- /etc/letsencrypt/live/fame.savink.in:/usr/local/etc
stream:
env_file:
- ./service.env
image: rg.nl-ams.scw.cloud/minuteoffame/mof-stream:master
hostname: stream
environment:
- KMS_URL=ws://192.168.0.1:8888/kurento
networks:
- main
- dockernet
depends_on:
- kurento
- distributor
networks:
main:
dockernet:
external: true