forked from sdr-enthusiasts/docker-planefence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (99 loc) · 4.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
version: '3.8'
volumes:
readsbpb_rrd:
readsbpb_autogain:
services:
#
planefence:
image: kx1t/planefence
tty: true
container_name: planefence
hostname: planefence
restart: always
# by adding a ports mapping, the planefence website is exposed to the
# host and your internal network:
ports:
- 8088:80
# we are phasing out the .env file in favor of a similar file named
# ~/.planefence/planefence.config. A template of that file will be
# generated automatically when you start the container for the first
# time. Planefence will not work unless you have either a .env file or
# a planefence.config file. Any values defined in planefence.config
# will take priority over those in .env. Uncomment the line below if you
# really want to continue to use your pre-existing .env file.
# Also, update TZ=America/New_York to your own timezone.
#
# LOGLEVEL can be "INFO" (default - all logs) or "ERROR" (only errors)
environment:
- TZ=America/New_York
- LOGLEVEL=INFO
volumes:
# adopt this one to point at your home directory if it is not /home/pi
- /home/pi/.planefence:/usr/share/planefence/persist
# the following exposes the html directory to the host, in case you
# want to use an external http daemon (lighttpd, nginx, etc)
- /opt/planefence/Volumes/html:/usr/share/planefence/html
tmpfs:
- /run:rw,nosuid,nodev,exec,relatime,size=512M
- /tmp:rw,nosuid,nodev,noexec,relatime,size=128M
#
# The following container enables adding screenshots to the Planefence Tweets.
# for the contribution of this container!
# The environment variable BASE_URL should be changed to point at YOUR OWN tar1090 or skyaware instance.
# This should be the "hostname" (or "container_name" if hostname is not defined) of your tar1090 container
# defined in this stack, or a full URL ("http://....) that can be reached from the container.
#
# Note that some of the parameters that are sent to the website are specific to tar1090
# and they may not work for PiAware or SkyAware based implementation
# Although it is theoretically possible to point at adsbexchange, we want to DISCOURAGE
# people from doing this - our philosophy is to use LOCAL DATA as much as we can.
#
# With thanks to tedder42 (https://github.com/tedder/browser-screenshot-service)
#
# Last - note that this container is LARGE (~350 Mb download). If storage space is an issue
# you may decide to forego this feature. Simply delete or comment out the section below.
screenshot:
image: tedder42/browser-screenshot-service:latest
tty: true
container_name: screenshot
hostname: screenshot
restart: always
shm_size: 1gb
environment:
- MAP_ARGS=zoom=11&hideSidebar&hideButtons&mapDim=2.0&monochromeMarkers=ff0000&outlineColor=505050&iconScale=1.5
#- MAP_ARGS=zoom=11&hideSidebar&hideButtons&mapDim=0.4&monochromeMarkers=00066&monochromeTracks=010101&outlineColor=505050&iconScale=1.5
- LOAD_SLEEP_TIME=10
- BASE_URL=http://tar1090
#
# the readsb entry pulls in a readsb container to get adsb data. If you want to
# use your own, you can remove this one. Just make sure you expose port
# 30003 and tell readsb/dump1090 to produce SBS data on port 30003 on your
# own feeder. Also update planefence.config to point it at your feeder.
#
readsb:
image: mikenye/readsb-protobuf:latest
tty: true
container_name: readsb
hostname: readsb
restart: always
devices:
- /dev/bus/usb
ports:
- 8080:8080
- 30003:30003
environment:
- TZ=${FEEDER_TZ}
- READSB_DEVICE_TYPE=rtlsdr
- READSB_RTLSDR_DEVICE=stx:1090:38
- READSB_GAIN=autogain
- READSB_LAT=${FEEDER_LAT}
- READSB_LON=${FEEDER_LONG}
- READSB_RX_LOCATION_ACCURACY=2
- READSB_STATS_RANGE=true
- READSB_NET_ENABLE=true
- READSB_NET_CONNECTOR=dump978,37981,raw_in
- READSB_NET_SBS_OUTPUT_PORT=30003
- READSB_EXTRA_ARGS=--net-beast-reduce-interval 2 --net-sbs-reduce
volumes:
- readsbpb_rrd:/run/collectd
- readsbpb_autogain:/run/autogain