Files
ISR/docker-compose.yml
T
admin 77e7e4ca9e fix: resolve NameError on startup, move analyses into recordings, remap port to 8050
- web.py: Python class bodies can't close over a name they also assign;
  use a temporary alias _analyses_dir to break the self-reference
- docker-compose.yml: mount ./recordings/analyses:/recordings/analyses
  instead of a separate ./analyses volume so cache lives inside recordings;
  remove --analyses-dir flag (default now resolves correctly); remap
  external port 8080→8050 for reverse proxy
- README.md / CLAUDE.md: update Docker port references to 8050

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-03 08:46:49 +02:00

24 lines
822 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
- ./recordings/analyses:/recordings/analyses
ports:
- "8050:8080"
restart: unless-stopped
command: ["python", "web.py", "--dir", "/recordings"]