services: live-captions: build: . container_name: live-captions ports: - "${PORT:-5000}:5000" volumes: # Persist SQLite database - ./data:/app/data # Persist Whisper models - whisper-models:/home/appuser/.cache/huggingface # Persist recordings - ./recordings:/app/recordings env_file: - .env environment: - HOST=0.0.0.0 - PORT=5000 restart: unless-stopped healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/api/health')"] interval: 30s timeout: 10s retries: 3 start_period: 60s volumes: whisper-models: name: live-captions-whisper-models