forked from compujuckel/adsb-docker
-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yml
274 lines (271 loc) · 8.67 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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
version: '2.4'
volumes:
settings:
radarbox:
services:
kiosk:
restart: unless-stopped
build: ./kiosk
privileged: true
ports:
- 8081:8080
volumes:
- 'settings:/data'
labels:
io.balena.features.supervisor-api: '1'
wifi-connect:
build: ./wifi-connect
restart: unless-stopped
network_mode: host
environment:
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
- PORTAL_LISTENING_PORT=8181
- PORTAL_SSID=balenaWiFi
- PORTAL_PASSPHRASE=balenaWiFi
- ACTIVITY_TIMEOUT=180
ports:
- "8181:8181"
cap_add:
- NET_ADMIN
labels:
io.balena.features.dbus: '1'
io.balena.features.supervisor-api: '1'
frontend-proxy:
image: traefik
build: ./traefik
restart: unless-stopped
ports:
- "80:80"
labels:
io.balena.features.balena-socket: '1'
io.balena.features.supervisor-api: '1'
dump1090-fa:
build: ./dump1090-fa
image: dump1090-fa
restart: unless-stopped
privileged: true
environment:
- LAT=
- LON=
devices:
- "/dev/bus/usb"
expose:
- "30001"
- "30002"
- "30003"
- "30004"
- "30005"
- "30102"
- "30104"
- "30105"
- "30106"
- "8080"
ports:
- "30001:30001"
- "30002:30002"
- "30003:30003"
- "30004:30004"
- "30005:30005"
- "30102:30102"
- "30104:30104"
- "30105:30105"
- "30106:30106"
- "8080:8080"
labels:
- "io.balena.features.supervisor-api=1"
- "traefik.enable=true"
# New, permanent redirect (from 13 March 2021)
- "traefik.http.routers.skyaware.rule=PathPrefix(`/skyaware`)"
- "traefik.http.routers.skyaware.middlewares=skyaware-redirect" # <- dump1090-fa-redirect to be deprecated later
- "traefik.http.middlewares.skyaware-redirect.redirectregex.regex=^.*/skyaware$$"
- "traefik.http.middlewares.skyaware-redirect.redirectregex.replacement=/skyaware/"
- "traefik.http.middlewares.skyaware-redirect.redirectregex.permanent=true"
# Temporary redirect for legacy purposes (from 13 March 2021)
- "traefik.http.routers.dump1090-fa.rule=PathPrefix(`/dump1090-fa`)"
- "traefik.http.routers.dump1090-fa.middlewares=dump1090-fa-redirect"
- "traefik.http.middlewares.dump1090-fa-redirect.redirectregex.regex=^.*/dump1090-fa.*$$"
- "traefik.http.middlewares.dump1090-fa-redirect.redirectregex.replacement=/skyaware/"
- "traefik.http.middlewares.dump1090-fa-redirect.redirectregex.permanent=true"
# Uncomment to enable dump978 UAT tracking (USA only).
dump978-fa:
build: ./dump978-fa
image: dump978-fa
restart: unless-stopped
environment:
- LAT=
- LON=
- DUMP978_DEVICE=00000978
- DUMP978_ENABLED=false
devices:
- "/dev/bus/usb"
expose:
- "30978"
- "30979"
- "8978"
ports:
- "30978:30978"
- "30979:30979"
- "8978:8978"
labels:
- "io.balena.features.supervisor-api=1"
- "traefik.enable=true"
- "traefik.http.routers.dump978-fa.rule=PathPrefix(`/skyaware978`)"
- "traefik.http.routers.dump978-fa.middlewares=dump978-fa-redirect"
- "traefik.http.middlewares.dump978-fa-redirect.redirectregex.regex=^.*/skyaware978$$"
- "traefik.http.middlewares.dump978-fa-redirect.redirectregex.replacement=/skyaware978/"
- "traefik.http.middlewares.dump978-fa-redirect.redirectregex.permanent=true"
piaware:
depends_on:
- dump1090-fa
build: ./piaware
image: piaware
restart: unless-stopped
environment:
- FLIGHTAWARE_FEEDER_ID=
- DUMP978_ENABLED=false
labels:
io.balena.features.supervisor-api: '1'
fr24feed:
depends_on:
- dump1090-fa
build: ./fr24feed
image: fr24feed
restart: unless-stopped
ports:
- "8754:8754"
environment:
- FR24_KEY=
labels:
- "io.balena.features.supervisor-api=1"
- "traefik.enable=true"
- "traefik.http.routers.fr24feed.rule=PathPrefix(`/fr24feed`)"
- "traefik.http.routers.fr24feed-a.rule=Path(`/logo.png`)"
- "traefik.http.routers.fr24feed-b.rule=Path(`/monitor.json`)"
- "traefik.http.routers.fr24feed-c.rule=Path(`/settings.html`)"
- "traefik.http.routers.fr24feed-d.rule=Path(`/restart.html`)"
- "traefik.http.routers.fr24feed-e.rule=Path(`/tracked.html`)"
- "traefik.http.routers.fr24feed-f.rule=Path(`/fr24.css`)"
- "traefik.http.routers.fr24feed-g.rule=Path(`/jquery.js`)"
- "traefik.http.routers.fr24feed-h.rule=Path(`/flights.json`)"
- "traefik.http.routers.fr24feed-i.rule=Path(`/shutdown.html`)"
- "traefik.http.routers.fr24feed-j.rule=Path(`/logs.json`)"
- "traefik.http.routers.fr24feed-k.rule=Path(`/shutdown.bin`)"
- "traefik.http.routers.fr24feed-l.rule=Path(`/restart.bin`)"
- "traefik.http.routers.fr24feed-m.rule=Path(`/config.json`)"
- "traefik.http.routers.fr24feed.middlewares=fr24feed-redirect,fr24feed-stripprefix"
- "traefik.http.middlewares.fr24feed-redirect.redirectregex.regex=^.*/fr24feed$$"
- "traefik.http.middlewares.fr24feed-redirect.redirectregex.replacement=/fr24feed/"
- "traefik.http.middlewares.fr24feed-redirect.redirectregex.permanent=true"
- "traefik.http.middlewares.fr24feed-stripprefix.stripprefix.prefixes=/fr24feed"
planefinder:
depends_on:
- dump1090-fa
build: ./planefinder
image: planefinder
restart: unless-stopped
ports:
- "30053:30053"
labels:
- "io.balena.features.supervisor-api=1"
- "traefik.enable=true"
- "traefik.http.routers.planefinder.rule=PathPrefix(`/planefinder`)"
- "traefik.http.routers.planefinder-a.rule=PathPrefix(`/`)"
- "traefik.http.routers.planefinder-b.rule=PathPrefix(`/ajax/`)"
- "traefik.http.routers.planefinder-c.rule=PathPrefix(`/assets/`)"
- "traefik.http.routers.planefinder-d.rule=PathPrefix(`/client/`)"
- "traefik.http.routers.planefinder-e.rule=Path(`/map.html`)"
- "traefik.http.routers.planefinder-f.rule=Path(`/map3D.html`)"
- "traefik.http.routers.planefinder-g.rule=Path(`/data.html`)"
- "traefik.http.routers.planefinder-h.rule=Path(`/logs.html`)"
- "traefik.http.routers.planefinder-i.rule=Path(`/viz.html`)"
- "traefik.http.routers.planefinder-j.rule=Path(`/stats.html`)"
- "traefik.http.routers.planefinder-l.rule=Path(`/setup.html`)"
- "traefik.http.routers.planefinder.middlewares=planefinder-redirect,planefinder-stripprefix"
- "traefik.http.middlewares.planefinder-redirect.redirectregex.regex=^.*/planefinder$$"
- "traefik.http.middlewares.planefinder-redirect.redirectregex.replacement=/planefinder/"
- "traefik.http.middlewares.planefinder-redirect.redirectregex.permanent=true"
- "traefik.http.middlewares.planefinder-stripprefix.stripprefix.prefixes=/planefinder"
opensky-network:
depends_on:
- dump1090-fa
build: ./opensky-network
image: opensky-network
restart: unless-stopped
environment:
- OPENSKY_USERNAME=
- OPENSKY_SERIAL=
labels:
io.balena.features.supervisor-api: '1'
radarbox:
depends_on:
- dump1090-fa
build: ./radarbox
image: radarbox
restart: unless-stopped
expose:
- "32088"
environment:
- RADARBOX_KEY=
- LAT=
- LON=
- ALT=
#Slight hack to make RadarBox run on i386 and amd64 architectures.
volumes:
- 'radarbox:/sys/class/thermal:ro'
- 'radarbox:/var/radarbox/thermal'
labels:
io.balena.features.supervisor-api: '1'
adsb-exchange:
depends_on:
- dump1090-fa
build:
context: ./adsb-exchange
image: adsb-exchange
restart: unless-stopped
environment:
ADSB_EXCHANGE_SITENAME: ''
ADSB_EXCHANGE_UUID: ''
LAT: ''
LON: ''
ALT: ''
expose:
- '30154'
- '30157'
- '31003'
labels:
io.balena.features.supervisor-api: '1'
wingbits:
depends_on:
- dump1090-fa
build: ./wingbits
image: wingbits
restart: unless-stopped
environment:
- WINGBITS_DEVICE_ID=
- LAT=
- LON=
expose:
- '30154'
labels:
io.balena.features.supervisor-api: '1'
autohupr:
build: ./autohupr
tmpfs:
- /tmp/work
labels:
io.balena.features.balena-api: '1'
io.balena.features.supervisor-api: '1'
# Optional: Uncomment to enable custom mlat server.
# mlat-client:
# depends_on:
# - dump1090-fa
# build: ./mlat-client
# image: mlat-client
# restart: unless-stopped
# environment:
# - LAT=
# - LON=
# - ALT=
# - MLAT_CLIENT_USER=
# labels:
# io.balena.features.supervisor-api: '1'