-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yaml
501 lines (476 loc) · 17.2 KB
/
docker-compose.yaml
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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
# Thanks to SDR-Enthusiasts for the base docker-compose.yml file
# See: https://github.com/sdr-enthusiasts/docker-install/blob/main/sample-docker-compose.yml
# License: MIT
# This file is based on the above.
version: '3.8'
services:
######################################################################################################################################
# ADS-B Feeder Services. These containers feed ADS-B/UAT data to aggregator services.
# Containers include:
# adsblol (ultrafeeder) - also connects to your USB SDR dongle and any other aggregators you want to feed to
# piaware (FlightAware)
# fr24 (FlightRadar24)
# pfclient (Planefinder)
# rbfeeder (RadarBox)
# radarvirtuel (RadarVirtuel)
# planewatch (Plane.Watch)
# ADSBHub (ADSB Hub)
adsblol:
image: ghcr.io/sdr-enthusiasts/docker-adsb-ultrafeeder
profiles:
- adsblol
ports:
- 8080:80
- 30005:30005
container_name: adsblol
hostname: adsblol
restart: always
device_cgroup_rules:
- 'c 189:* rwm'
environment:
- READSB_DEVICE_TYPE=rtlsdr
- READSB_LAT=${FEEDER_LAT}
- READSB_LON=${FEEDER_LONG}
- READSB_ALT=${FEEDER_ALT_M}m
- TZ=${FEEDER_TZ}
- MLAT_USER=${MLAT_SITE_NAME}
- UUID=${ULTRAFEEDER_UUID}
- READSB_RTLSDR_DEVICE=${ADSB_DONGLE_SERIAL}
- READSB_RTLSDR_PPM=${DUMP978_DONGLE_SERIAL}
- READSB_RX_LOCATION_ACCURACY=2
- READSB_STATS_RANGE=true
- UPDATE_TAR1090=true
- TAR1090_MESSAGERATEINTITLE=true
- TAR1090_PAGETITLE=${FEEDER_NAME}
- TAR1090_PLANECOUNTINTITLE=true
- TAR1090_ENABLE_AC_DB=true
- TAR1090_FLIGHTAWARELINKS=true
- TAR1090_SITESHOW=true
- TAR1090_RANGE_OUTLINE_COLORED_BY_ALTITUDE=true
- TAR1090_RANGE_OUTLINE_WIDTH=2.0
- TAR1090_RANGERINGSDISTANCES=50,100,150,200
- TAR1090_RANGERINGSCOLORS='#1A237E','#0D47A1','#42A5F5','#64B5F6'
- HEYWHATSTHAT_PANORAMA_ID=${HEYWHATSTHAT}
- HEYWHATSTHAT_ALTS=${HEYWHATSTHAT_ALTS}
- TAR1090_USEROUTEAPI=true
- TAR1090_ROUTEAPIURL=https://api.adsb.lol/api/0/routeset
- ULTRAFEEDER_CONFIG=
adsb,feed.adsb.lol,30004,beast_reduce_plus_out,uuid=${ADSBLOL_UUID};
mlat,feed.adsb.lol,31090,39599,uuid=${ADSBLOL_UUID},${ADSBLOL_MLAT_CONFIG}
- READSB_NET_CONNECTOR=${ADSBLOL_ADDITIONAL_NET_CONNECTOR}
- MLAT_CONFIG=${ADSBLOL_ADDITIONAL_MLAT_CONFIG}
- MLATHUB_NET_CONNECTOR=${MLATHUB_NET_CONNECTOR}
- MLATHUB_CONFIG=${MLATHUB_CONFIG}
- READSB_GAIN=${ADSB_DONGLE_GAIN}
- READSB_RTLSDR_PPM=${ADSB_DONGLE_PPM}
volumes:
- /opt/adsblol/ultrafeeder/globe_history:/var/globe_history
- /opt/adsblol/ultrafeeder/graphs1090:/var/lib/collectd
- /proc/diskstats:/proc/diskstats:ro
- /dev:/dev:ro
tmpfs:
- /run/readsb
- /var/log
piaware:
# piaware feeds ADS-B and UAT data (from readsb) to FlightAware. It also includes a GUI Radar website and a status website
image: ghcr.io/sdr-enthusiasts/docker-piaware
profiles:
- piaware
container_name: piaware
hostname: piaware
restart: always
labels:
- "autoheal=true"
depends_on:
- adsblol
ports:
- 8081:8080
- 8088:80
environment:
- BEASTHOST=adsblol
- LAT=${FEEDER_LAT}
- LONG=${FEEDER_LONG}
- TZ=${FEEDER_TZ}
- FEEDER_ID=${PIAWARE_FEEDER_ID}
tmpfs:
- /run:exec,size=64M
- /var/log
fr24:
# fr24 feeds ADS-B and UAT data (from readsb) to FlightRadar24. It also includes a status website. Please be careful
# not to expose the status website to the internet as users may be able to start/stop/change the service from there.
# Also note that FR24 has requested NOT to enable MLAT for those station that feed to multiple services; as such, it's commented out.
image: ghcr.io/sdr-enthusiasts/docker-flightradar24
profiles:
- fr24
container_name: fr24
hostname: fr24
restart: always
labels:
- "autoheal=true"
depends_on:
- adsblol
ports:
- 8754:8754
environment:
- BEASTHOST=adsblol
- TZ=${FEEDER_TZ}
- FR24KEY=${FR24_SHARING_KEY}
# - MLAT=yes
tmpfs:
- /var/log
pfclient:
# pfclient feeds ADS-B and UAT data (from readsb) to Plane Finder. It also includes a GUI Radar website and a status website
image: ghcr.io/sdr-enthusiasts/docker-planefinder:latest
profiles:
- pfclient
container_name: pfclient
restart: always
ports:
- 8084:30053
environment:
- BEASTHOST=adsblol
- LAT=${FEEDER_LAT}
- LONG=${FEEDER_LONG}
- TZ=${FEEDER_TZ}
- SHARECODE=${PLANEFINDER_SHARECODE}
rbfeeder:
# rbfeeder feeds ADS-B and UAT data (from readsb) to RadarBox.
image: ghcr.io/sdr-enthusiasts/docker-radarbox
profiles:
- rbfeeder
container_name: rbfeeder
hostname: rbfeeder
restart: always
labels:
- "autoheal=true"
depends_on:
- adsblol
environment:
- BEASTHOST=adsblol
- LAT=${FEEDER_LAT}
- LONG=${FEEDER_LONG}
- ALT=${FEEDER_ALT_M}
- TZ=${FEEDER_TZ}
- SHARING_KEY=${RADARBOX_SHARING_KEY}
tmpfs:
- /run:exec,size=64M
- /var/log
radarvirtuel:
# radarvirtuel feeds ADS-B and UAT data (from readsb) to RadarVirtuel.
image: ghcr.io/sdr-enthusiasts/docker-radarvirtuel
profiles:
- radarvirtuel
container_name: radarvirtuel
hostname: radarvirtuel
restart: always
depends_on:
- adsblol
environment:
- FEEDER_KEY=${RV_KEY}
- SOURCE_HOST=adsblol:30002
- RV_SERVER=mg22.adsbnetwork.com:50050
- LAT=${FEEDER_LAT}
- LON=${FEEDER_LONG}
- ALT=${FEEDER_ALT_M}m
- MLAT_SERVER=mlat.adsbnetwork.com:50000
- MLAT_HOST=readsb:30005
- MLAT_INPUT_TYPE=auto
- VERBOSE=ON
tmpfs:
- /tmp:rw,nosuid,nodev,noexec,relatime,size=128M
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
planewatch:
# planewatch feeds ADS-B and UAT data (from readsb) to Plane.Watch.
image: planewatch/plane-watch
profiles:
- planewatch
container_name: planewatch
hostname: planewatch
restart: always
depends_on:
- adsblol
environment:
- BEASTHOST=adsblol
- TZ=${FEEDER_TZ}
- API_KEY=${PLANEWATCH_KEY}
- ACARS_HOST=acars_router
- VDLM2_HOST=acars_router
- DEBUG_LOGGING=true
- LAT=${FEEDER_LAT}
- LONG=${FEEDER_LONG}
- ALT=${FEEDER_ALT_FT}ft
tmpfs:
- /run:exec,size=64M
- /var/log
adsbhub:
# adsbhub feeds ADS-B and UAT data (from readsb) to ADSB Hub.
image: ghcr.io/sdr-enthusiasts/docker-adsbhub
profiles:
- adsbhub
container_name: adsbhub
restart: always
environment:
- TZ=${FEEDER_TZ}
- SBSHOST=adsblol
- CLIENTKEY=${ADSBHUB_STATION_KEY}
######################################################################################################################################
# ADS-B Visualization Services. These containers create pretty web pages from ADSB/UAT data that your station receives.
# Containers include:
# tar1090 (most people's preferred "radar" application
# planefence (monitor planes nearby your station and planes from a "special" watchlist)
# screenshot (auxilary container used with planefence -- only runs well on Pi4)
planefence:
# Note - after initial startup, please edit /opt/adsblol/data/planefence/config/planefence.config. Then restart this container.
image: kx1t/planefence:dev
profiles:
- planefence
container_name: planefence
hostname: planefence
restart: always
depends_on:
- adsblol
ports:
- 8083:80
environment:
- TZ=${FEEDER_TZ}
volumes:
- /opt/adsblol/data/planefence/config:/usr/share/planefence/persist
- /opt/adsblol/data/planefence/html:/usr/share/planefence/html
tmpfs:
- /run:rw,nosuid,nodev,exec,relatime,size=256M
- /tmp:rw,nosuid,nodev,noexec,relatime,size=128M
screenshot:
image: tedder42/browser-screenshot-service
profiles:
- screenshot
container_name: screenshot
hostname: screenshot
depends_on:
- planefence
restart: always
shm_size: 1gb
environment:
- MAP_ARGS=zoom=8.5&hideSidebar&hideButtons&mapDim=0.2&monochromeMarkers=ff0000&outlineColor=505050&iconScale=1.5&enableLabels&extendedLabels=2&trackLabels
- LOAD_SLEEP_TIME=25
- BASE_URL=http://adsblol
- DISABLE_SHM=true
- MAXTIME=60
ports:
- 5042:5042
######################################################################################################################################
# Additional aircraft related containers: airband
# This container allows listening to Airband radio and feeding this data to RadarBox. It also creates a local Icecast station you can
# listen to.
airband:
image: fredclausen/rtlsdrairband
profiles:
- airband
container_name: airband
restart: always
devices:
- /dev/bus/usb:/dev/bus/usb
ports:
- 8000:8000
environment:
- RTLSDRAIRBAND_CUSTOMCONFIG=true
# - ICECAST_CUSTOMCONFIG=true
volumes:
- /opt/adsblol/data/rtlsdr-airband:/run/rtlsdr-airband
######################################################################################################################################
# Additional aircraft related containers: ACARS/VDLM
# With these containers, you can receive and look at ACARS and VDL-M2 messages and feed those to ariframes.io.
# Note that the plane.watch container is also set up to forward these messages.
# The set consists of the following containers:
# acarsdec: receives and decodes ACARS data from a dedicated RTL-SDR dongle
# dumpvdl2: receives and decodes VDL-M2 data from a dedicated RTL-SDR dongle
# acars_router: functions as an aggregator/distributor of the received ACARS and VDL-M2 data
# acarshub: visualization tool for ACARS and VDL-M2 data
acarsdec:
image: ghcr.io/sdr-enthusiasts/docker-acarsdec:latest
profiles:
- acarsdec
container_name: acarsdec
restart: always
devices:
- /dev/bus/usb:/dev/bus/usb
environment:
- TZ=${FEEDER_TZ}
- SERIAL=${ACARS_DONGLE_SERIAL}
- FREQUENCIES=${ACARS_FREQUENCIES}
- GAIN=${ACARS_DONGLE_GAIN}
- SERVER=acars_router
- SERVER_PORT=5550
- FEED_ID=${ACARS_FEEDER_ID}
tmpfs:
- /run:exec,size=64M
- /var/log
dumpvdl2:
image: ghcr.io/sdr-enthusiasts/docker-dumpvdl2:latest
container_name: dumpvdl2
profiles:
- dumpvdl2
restart: always
devices:
- /dev/bus/usb:/dev/bus/usb
environment:
- TZ=${FEEDER_TZ}
- SERIAL=${VDLM_DONGLE_SERIAL}
- FREQUENCIES=${VDLM_FREQUENCIES}
- GAIN=${VDLM_DONGLE_GAIN}
- ZMQ_MODE=server
- ZMQ_ENDPOINT=tcp://0.0.0.0:45555
- FEED_ID=${VDLM_FEEDER_ID}
- VDLM_FILTER_ENABLE=
- QUIET_LOGS=FALSE
- SERVER=
tmpfs:
- /run:exec,size=64M
- /var/log
acars_router:
image: ghcr.io/sdr-enthusiasts/acars_router:latest
profiles:
- acars_router
container_name: acars_router
restart: always
environment:
- TZ=${FEEDER_TZ}
- AR_SEND_UDP_ACARS=acarshub:5550;acars.in.adsb.lol:5550
- AR_SEND_UDP_VDLM2=acarshub:5555
- AR_SEND_TCP_VDLM2=acars.in.adsb.lol:5553
- AR_RECV_ZMQ_VDLM2=dumpvdl2:45555
# - AR_VERBOSITY=1
ports:
- 15550:15550
- 15555:15555
tmpfs:
- /run:exec,size=64M
- /var/log
acarshub:
image: ghcr.io/sdr-enthusiasts/docker-acarshub:latest
profiles:
- acarshub
container_name: acarshub
hostname: acarshub
restart: always
ports:
- 8091:80
environment:
- TZ=${FEEDER_TZ}
- ADSB_LAT=${FEEDER_LAT}
- ADSB_LON=${FEEDER_LONG}
- ENABLE_ADSB=true
- ADSB_URL=http://tar1090/data/aircraft.json
- ENABLE_ACARS=external
- ENABLE_VDLM=external
volumes:
- /opt/adsblol/data/acarshub:/run/acars
tmpfs:
- /run:exec,size=64M
- /var/log
######################################################################################################################################
# WebProxy translates unfriendly URLs like http://x.x.x.x:8091 into friendly URLs like http://x.x.x.x/acarshub
# It also provides GeoIP filtering and Bot Filtering
# Although it's possible (and easy) to add SSL connectivity for websites that are exposed to the Internet,
# the setup below doesn't include this.
# Additionally, you can host your own web pages in this directory: /opt/adsblol/data/webproxy/html
webproxy:
image: kx1t/webproxy:dev
profiles:
- webproxy
container_name: webproxy
hostname: webproxy
restart: always
ports:
- 80:80
- 443:443
environment:
- AUTOGENERATE=ON
- VERBOSELOG=ON
- GEOIP_DEFAULT=ALLOW
- GEOIP_COUNTRIES=RU,CN,BY
- GEOIP_RESPONSECODE=418
- REVPROXY= readsb|http://${MY_HOST}:8080, graphs|http://${MY_HOST}:8080/graphs, stats|http://${MY_HOST}:8080/graphs, radar|http://${MY_HOST}:8080/radar, piaware|http://${MY_HOST}:8081, piaware-stats|http://${MY_HOST}:8088, tar1090|http://${MY_HOST}:8082, planefence|http://${MY_HOST}:8083, plane-alert|http://${MY_HOST}:8083/plane-alert, vnstat|http://${MY_HOST}:8685, planefinder|http://${MY_HOST}:8084,ajax|http://${MY_HOST}:8084/ajax,assets|http://${MY_HOST}:8084/assets, vrs|http://${MY_HOST}/VirtualRadar, fam|http://${MY_HOST}:8090, acarshub|http://${MY_HOST}:8091
- REDIRECT= /skyaware|/piaware, /fr24|http://$$host:8754, /planefinder/logs.html|http://$$host:8084/logs.html, /airband|http://$$host:8000
- SSL=DISABLED
- BLOCKBOT= bot,LieBaoFast,UCBrowser,MQQBrowser,Mb2345Browser, google,bing,yandex,msnbot, AltaVista,Googlebot,Slurp,BlackWidow,Bot,ChinaClaw,Custo,DISCo,Download,Demon,eCatch,EirGrabber,EmailSiphon,EmailWolf,SuperHTTP,Surfbot,WebWhacker, Express,WebPictures,ExtractorPro,EyeNetIE,FlashGet,GetRight,GetWeb!,Go!Zilla,Go-Ahead-Got-It,GrabNet,Grafula,HMView,Go!Zilla,Go-Ahead-Got-It, rafula,HMView,HTTrack,Stripper,Sucker,Indy,InterGET,Ninja,JetCar,Spider,larbin,LeechFTP,Downloader,tool,Navroad,NearSite,NetAnts,tAkeOut,WWWOFFLE, GrabNet,NetSpider,Vampire,NetZIP,Octopus,Offline,PageGrabber,Foto,pavuk,pcBrowser,RealDownload,ReGet,SiteSnagger,SmartDownload,SuperBot,WebSpider, Teleport,VoidEYE,Collector,WebAuto,WebCopier,WebFetch,WebGo,WebLeacher,WebReaper,WebSauger,eXtractor,Quester,WebStripper,WebZIP,Wget,Widow,Zeus, Twengabot,htmlparser,libwww,Python,perl,urllib,scan,email,PycURL,Pyth,PyQ,WebCollector,WebCopy,webcraw,PetalBot,ubermetrics,Firefox/45, Vert.x-WebClient,jsonlite,rv:45.0,Nexgate Ruby Client,scoop.it,NetSystemsResearch,Barkrowler,Python-Requests
- BLOCKBOT_RESPONSECODE=402
tmpfs:
- /tmp:rw,nosuid,nodev,noexec,relatime,size=128M
volumes:
- /opt/adsblol/data/webproxy:/run/nginx
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
######################################################################################################################################
# Finally, a few "maintenance" containers that keep the rest of the stack healthy and up to date:
# vnstat: shows network usage on a per interface (global and per container) basis
# autoheal: restarts containers when they are deemed "unhealthy"
# watchtower: checks every 24 hours for new versions of the containers, and downloads/installs/starts them
vnstat:
profiles:
- vnstat
image: vergoh/vnstat
container_name: vnstat
network_mode: "host"
ports:
- 8685:8685
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /opt/adsblol/data/vnstat:/var/lib/vnstat
environment:
- HTTP_PORT=8685
- HTTP_BIND=*
- HTTP_LOG=/dev/stdout
- LARGE_FONTS=1
- CACHE_TIME=1
- RATE_UNIT=0
- PAGE_REFRESH=0
- SERVER_NAME="ADSB Station IO Stats"
autoheal:
profiles:
- autoheal
image: willfarrell/autoheal
container_name: autoheal
hostname: autoheal
restart: always
environment:
- AUTOHEAL_CONTAINER_LABEL=all
volumes:
- /var/run/docker.sock:/var/run/docker.sock
watchtower:
profiles:
- watchtower
image: containrrr/watchtower
container_name: watchtower
hostname: watchtower
restart: always
environment:
- TZ=${FEEDER_TZ}
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_POLL_INTERVAL=86400
- WATCHTOWER_ROLLING_RESTART=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# vscode
code-server:
image: lscr.io/linuxserver/code-server:latest
container_name: code-server
profiles:
- code-server
environment:
- PUID=1000
- PGID=1000
- TZ=${FEEDER_TZ}
- PASSWORD=${ADSBLOL_VSCODE_PASSWORD:-adsblol123}
- HASHED_PASSWORD=${ADSBLOL_VSCODE_HASHED_PASSWORD} #optional
- SUDO_PASSWORD=${ADSBLOL_VSCODE_SUDO_PASSWORD} #optional
- SUDO_PASSWORD_HASH=${ADSBLOL_VSCODE_PASSWORD_HASH} #optional
- DEFAULT_WORKSPACE=/config/workspace #optional
volumes:
- /opt/adsblol/data/code-server:/config
- /:/host
ports:
- 8443:8443
restart: unless-stopped