forked from nikosch86/stf-poc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
219 lines (200 loc) · 5.29 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
version: '3.2'
volumes:
rethinkdb:
storage-temp:
services:
nginx:
build: nginx/
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
restart: unless-stopped
ports:
- 4800:4800
depends_on:
- app
- auth
- storage-plugin-apk
- storage-plugin-image
- storage-temp
- websocket
- api
- swagger-ui
adb:
image: sorccu/adb:latest
restart: unless-stopped
privileged: true
volumes:
- /dev/bus/usb:/dev/bus/usb
rethinkdb:
image: rethinkdb:2.3
restart: unless-stopped
volumes:
- rethinkdb:/data
app:
image: rzrnt/stf:mk-1
restart: unless-stopped
environment:
RETHINKDB_PORT_28015_TCP: ${RETHINKDB_PORT_28015_TCP}
SECRET: ${SECRET}
STF_APP_AUTH_URL: http://${PUBLIC_IP}/auth/mock/
STF_APP_WEBSOCKET_URL: ws://${PUBLIC_IP}/
STF_APP_PORT: 3000
command: stf app
depends_on:
- rethinkdb
- auth
- websocket
auth:
image: rzrnt/stf:mk-1
restart: unless-stopped
environment:
SECRET: ${SECRET}
STF_AUTH_MOCK_SECRET: ${SECRET}
STF_AUTH_MOCK_APP_URL: http://${PUBLIC_IP}/
STF_AUTH_MOCK_PORT: 3000
command: stf auth-mock
processor:
image: rzrnt/stf:mk-1
restart: unless-stopped
environment:
RETHINKDB_PORT_28015_TCP: ${RETHINKDB_PORT_28015_TCP}
STF_PROCESSOR_CONNECT_APP_DEALER: tcp://triproxy:7160
STF_PROCESSOR_CONNECT_DEV_DEALER: tcp://dev-triproxy:7260
command: stf processor
depends_on:
- rethinkdb
- triproxy
- dev-triproxy
triproxy:
image: rzrnt/stf:mk-1
restart: unless-stopped
environment:
STF_TRIPROXY_BIND_PUB: tcp://*:7150
STF_TRIPROXY_BIND_DEALER: tcp://*:7160
STF_TRIPROXY_BIND_PULL: tcp://*:7170
command: stf triproxy app
dev-triproxy:
image: rzrnt/stf:mk-1
restart: unless-stopped
environment:
STF_TRIPROXY_BIND_PUB: tcp://*:7250
STF_TRIPROXY_BIND_DEALER: tcp://*:7260
STF_TRIPROXY_BIND_PULL: tcp://*:7270
command: stf triproxy dev
migrate:
image: rzrnt/stf:mk-1
environment:
RETHINKDB_PORT_28015_TCP: ${RETHINKDB_PORT_28015_TCP}
command: stf migrate
depends_on:
- rethinkdb
provider:
image: rzrnt/stf:mk-1
restart: unless-stopped
environment:
STF_PROVIDER_CONNECT_SUB: tcp://dev-triproxy:7250
STF_PROVIDER_NAME: ${STATION_NAME}
STF_PROVIDER_CONNECT_PUSH: tcp://dev-triproxy:7270
STF_PROVIDER_STORAGE_URL: http://${PUBLIC_IP}/
STF_PROVIDER_PUBLIC_IP: ${PUBLIC_IP}
STF_PROVIDER_HEARTBEAT_INTERVAL: 10000
STF_PROVIDER_SCREEN_WS_URL_PATTERN: ws://${PUBLIC_IP}/d/nuc/<%= serial %>/<%= publicPort %>/
STF_PROVIDER_ADB_HOST: adb
STF_PROVIDER_MIN_PORT: 7400
STF_PROVIDER_MAX_PORT: 7700
command: stf provider
ports:
- 7400-7700:7400-7700
depends_on:
- adb
- dev-triproxy
- triproxy
- storage-temp
reaper:
image: rzrnt/stf:mk-1
restart: unless-stopped
environment:
RETHINKDB_PORT_28015_TCP: ${RETHINKDB_PORT_28015_TCP}
STF_REAPER_CONNECT_PUSH: tcp://dev-triproxy:7270
STF_REAPER_CONNECT_SUB: tcp://triproxy:7150
STF_REAPER_HEARTBEAT_TIMEOUT: 30000
depends_on:
- migrate
- rethinkdb
- dev-triproxy
- triproxy
command: stf reaper dev
storage-plugin-apk:
image: rzrnt/stf:mk-1
restart: unless-stopped
environment:
STF_STORAGE_PLUGIN_APK_PORT: 3000
STF_STORAGE_PLUGIN_APK_STORAGE_URL: http://${PUBLIC_IP}/
command: stf storage-plugin-apk
depends_on:
- storage-temp
storage-plugin-image:
image: rzrnt/stf:mk-1
restart: unless-stopped
environment:
STF_STORAGE_PLUGIN_IMAGE_PORT: 3000
STF_STORAGE_PLUGIN_IMAGE_STORAGE_URL: http://${PUBLIC_IP}/
command: stf storage-plugin-image
depends_on:
- storage-temp
storage-temp:
build: storage-temp/
restart: unless-stopped
volumes:
- storage-temp:/app/data
environment:
STF_STORAGE_TEMP_PORT: 3000
command: stf storage-temp --save-dir /app/data
websocket:
image: rzrnt/stf:mk-1
restart: unless-stopped
environment:
SECRET: ${SECRET}
RETHINKDB_PORT_28015_TCP: ${RETHINKDB_PORT_28015_TCP}
STF_WEBSOCKET_PORT: 3000
STF_WEBSOCKET_STORAGE_URL: http://${PUBLIC_IP}/
STF_WEBSOCKET_CONNECT_SUB: tcp://triproxy:7150
STF_WEBSOCKET_CONNECT_PUSH: tcp://triproxy:7170
command: stf websocket
depends_on:
- migrate
- rethinkdb
- storage-temp
- triproxy
- dev-triproxy
api:
image: rzrnt/stf:mk-1
restart: unless-stopped
environment:
SECRET: ${SECRET}
RETHINKDB_PORT_28015_TCP: ${RETHINKDB_PORT_28015_TCP}
STF_API_PORT: 3000
STF_API_CONNECT_SUB: tcp://triproxy:7150
STF_API_CONNECT_PUSH: tcp://triproxy:7170
command: stf api
depends_on:
- migrate
- rethinkdb
- triproxy
swagger-ui:
image: swaggerapi/swagger-ui
ports:
- 8080:8080
environment:
URL: http://${PUBLIC_IP}/api/v1/swagger.json
BASE_URL: /
chateau:
image: hronom/docker-chateau
environment:
RETHINKDB_HOST: rethinkdb
RETHINKDB_PORT: 28015
RETHINKDB_AUTH_KEY:
ports:
- 3000:3000
depends_on:
- rethinkdb