diff --git a/docker-compose.yml b/docker-compose.yml index 234fa20c3..a77494860 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,5 +29,14 @@ services: - RECEIVER_LON=${RECEIVER_LON:-0} - ADSBLOL_RADIUS=${ADSBLOL_RADIUS:-40} - PROXY_PORT=3005 + # SD-card endurance: run the graphs1090 RRD set from the /run tmpfs below + # and write it back as a single gzipped tarball, instead of 48 scattered + # in-place RRD updates every 60s. Only effective because /run is tmpfs. + - GRAPHS1090_REDUCE_IO=true tmpfs: + # /run holds volatile runtime state (readsb JSON at 1 Hz, tar1090 chunks, + # graphs1090 PNGs, s6 service dirs) and is tmpfs on any normal install. + # On the container overlay it cost ~7 GB/day of SD-card writes for ~8 KB/min + # of real data. exec is required: s6-overlay execs its service scripts here. + - /run:exec,size=64M - /var/log:size=32M