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>
This commit is contained in:
Michael Smith
2026-03-21 18:32:17 +00:00
parent d3effff7db
commit 94fdaf7644
8 changed files with 187 additions and 0 deletions

View File

@@ -18,3 +18,15 @@ services:
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"]