Files
sdr-recorder/docker-compose.yml
Michael Smith 94fdaf7644 Add recording cleanup container to remove noise files
Alpine-based sdr-cleanup container runs a find loop every 5 minutes,
deleting MP3 files under 3 KB (configurable via SIZE_THRESHOLD env var)
to keep the web browser and Samba share free of false-positive recordings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 18:32:17 +00:00

33 lines
842 B
YAML

services:
rtlsdr-airband:
image: ghcr.io/rtl-airband/rtlsdr-airband:latest
container_name: sdr-recorder
restart: unless-stopped
devices:
- /dev/bus/usb:/dev/bus/usb
volumes:
- ./rtl_airband.conf:/app/rtl_airband.conf:ro
- /home/m/recordings:/recordings
web:
image: nginx:alpine
container_name: sdr-web
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- /home/m/recordings:/recordings:ro
cleanup:
image: alpine:latest
container_name: sdr-cleanup
restart: unless-stopped
environment:
- SIZE_THRESHOLD=3k
- INTERVAL=300
volumes:
- ./cleanup-recordings.sh:/cleanup-recordings.sh:ro
- /home/m/recordings:/recordings
command: ["/bin/sh", "/cleanup-recordings.sh"]