4aea07ae40
The Docker web container mounts ./recordings as :ro, causing every cache write to fail silently (PermissionError swallowed by bare except). Fix: add --analyses-dir flag (default: <recordings>/analyses for local runs). docker-compose.yml adds ./analyses:/analyses (writable) and passes --analyses-dir /analyses to web.py. Cache write failures now print a warning instead of being swallowed silently. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
831 B
YAML
24 lines
831 B
YAML
services:
|
|
recorder:
|
|
build: .
|
|
volumes:
|
|
- ./config.ini:/app/config.ini:ro
|
|
- ./recordings:/app/recordings # matches output_directory = recordings in config.ini
|
|
- ./asound.conf:/etc/asound.conf:ro # dsnoop shared-capture config
|
|
# Soundcard (ALSA) access — comment out if you only record streams
|
|
devices:
|
|
- /dev/snd:/dev/snd
|
|
ipc: host # share IPC namespace with host so dsnoop shared memory works
|
|
restart: unless-stopped
|
|
stop_grace_period: 30s # allow time for open files to be closed cleanly
|
|
|
|
web:
|
|
build: .
|
|
volumes:
|
|
- ./recordings:/recordings:ro
|
|
- ./analyses:/analyses
|
|
ports:
|
|
- "8080:8080"
|
|
restart: unless-stopped
|
|
command: ["python", "web.py", "--dir", "/recordings", "--analyses-dir", "/analyses"]
|