-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
113 lines (104 loc) · 2.1 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
version: '3'
services:
web:
image: maplegend/minute-of-fame
build: .
command: /bin/sh -c "python manage.py migrate && python manage.py createcachetable && python manage.py runserver 0.0.0.0:80"
env_file:
- ./service.env
- ./web.env
- ./db.env
- ./secret.env
ports:
- 80:80
environment:
- NODE_ENV=production
- RHOST=redis
networks:
- main
depends_on:
- db
distributor:
env_file:
- ./service.env
- ./secret.env
image: rg.nl-ams.scw.cloud/minuteoffame/websocket-distributor:master
hostname: distributor
networks:
- main
depends_on:
- web
ports:
- 4321:4321
chat:
env_file:
- ./service.env
image: rg.nl-ams.scw.cloud/minuteoffame/mof-chat:master
hostname: chat
networks:
- main
depends_on:
- distributor
queue:
env_file:
- ./service.env
image: rg.nl-ams.scw.cloud/minuteoffame/mof-queue:master
hostname: queue
networks:
- main
depends_on:
- distributor
poll:
env_file:
- ./service.env
image: rg.nl-ams.scw.cloud/minuteoffame/mof-poll:master
hostname: poll
networks:
- main
depends_on:
- distributor
db:
env_file:
- ./db.env
image: postgres:alpine
restart: always
hostname: db
networks:
- main
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./pg_data:/var/lib/postgresql/pg_data
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- main
kurento:
hostname: kurento
image: kurento/kurento-media-server
network_mode: host
volumes:
- ./recs:/recs
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