-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
executable file
·186 lines (174 loc) · 4.34 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
version: '2'
services:
# Consul
consul:
image: gliderlabs/consul-server:latest
command: "-server -bootstrap"
ports:
- 8500:8500
networks:
2immerse:
aliases:
- consul.service.consul
registrator:
image: gliderlabs/registrator:v7
command: "consul://consul:8500"
depends_on:
- consul
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
networks:
- 2immerse
mqttbroker:
image: eclipse-mosquitto:1.6.15
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
depends_on:
- registrator
labels:
- "SERVICE_NAME=mqttbroker"
networks:
2immerse:
aliases:
- mqttbroker.service.consul
redis:
image: redis:latest
ports:
- "6379:6379"
depends_on:
- registrator
labels:
- "SERVICE_NAME=redis"
networks:
2immerse:
aliases:
- redis.service.consul
wallclockservice:
build: ./wallclock-service
image: wallclockservice
ports:
- "6677:6677/udp"
- "6676:6676"
- "6675:80"
labels:
- "SERVICE_NAME=wallclock-service"
depends_on:
- registrator
networks:
2immerse:
aliases:
- wallclock-service.service.consul
sessioncontroller:
build:
context: ./src
dockerfile: sessioncontroller/Dockerfile
image: sessioncontroller
ports:
- 4002:4002
command: npm start
volumes:
- ./src/sessioncontroller/src:/usr/src/sessioncontroller/src
- ./src/sessioncontroller/log:/usr/src/sessioncontroller/log
depends_on:
- registrator
- mqttbroker
- wallclockservice
labels:
- "SERVICE_NAME=sessioncontroller"
environment:
WALLCLOCK_SERVICE_WS_URL: wss://wallclock-service.virt.ch.bbc.co.uk
networks:
2immerse:
aliases:
- sessioncontroller.service.consul
synccontroller:
build:
context: ./src
dockerfile: synccontroller/Dockerfile
image: synccontroller
ports:
- "3002"
command: npm start
volumes:
- ./src/synccontroller/src:/usr/src/synccontroller/src
- ./src/synccontroller/log:/usr/src/synccontroller/log
depends_on:
- registrator
- mqttbroker
- wallclockservice
- redis
labels:
- "SERVICE_NAME=synccontroller"
environment:
WALLCLOCK_SERVICE_WS_URL: wss://wallclock-service.virt.ch.bbc.co.uk
networks:
2immerse:
aliases:
- synccontroller.service.consul
statscontroller:
build:
context: ./src
dockerfile: statscontroller/Dockerfile
image: statscontroller
ports:
- 4001:4001
- 5855:5855
command: npm start
volumes:
- ./src/statscontroller/src:/usr/src/statscontroller/src
- ./src/statscontroller/log:/usr/src/statscontroller/log
depends_on:
- registrator
- mqttbroker
- wallclockservice
- redis
labels:
- "SERVICE_NAME=statscontroller"
environment:
WALLCLOCK_SERVICE_WS_URL: wss://wallclock-service.virt.ch.bbc.co.uk
networks:
2immerse:
aliases:
- statscontroller.service.consul
timelineobserver:
build: src/timelineobserver/TimelineObserver/
image: timelineobserver
command: -r consul:8500 -d redis -b mqttbroker -t Sessions/+/timelines/+/state
depends_on:
- registrator
- mqttbroker
- redis
- synccontroller
labels:
- "SERVICE_NAME=timelineobserver"
environment:
CONSUL_URL: localhost:8500
networks:
2immerse:
aliases:
- timelineobserver.service.consul
synchronisedvideo:
build: examples/synchronisedvideo
image: synchronisedvideo
volumes:
- ./examples/synchronisedvideo/src:/usr/src/app/src
- ./examples/synchronisedvideo/logs:/usr/src/app/logs
- ./examples/synchronisedvideo/media:/usr/src/app/media
- ./examples/synchronisedvideo/config:/usr/src/app/config
- ./dist:/usr/src/app/dist
ports:
- 3000:3000
depends_on:
- sessioncontroller
labels:
- "SERVICE_NAME=synchronisedvideo"
networks:
2immerse:
aliases:
- synchronisedvideo.service.consul
networks:
2immerse:
driver: bridge