31 lines
799 B
YAML
31 lines
799 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
audiobook-studio:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: audiobook-studio-pro
|
|
ports:
|
|
- "5009:5009"
|
|
environment:
|
|
- SECRET_KEY=${SECRET_KEY:-your-secret-key-change-in-production}
|
|
- DATABASE_DIR=/opt/apps/audiobook-studio-pro-v3
|
|
- TTS_API_URL=${TTS_API_URL:-http://localhost:5010/api/v1}
|
|
- TTS_API_KEY=${TTS_API_KEY:-}
|
|
- FLASK_ENV=production
|
|
volumes:
|
|
# Persist database outside container
|
|
- audiobook_data:/opt/apps/audiobook-studio-pro-v3
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:5009/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
audiobook_data:
|
|
driver: local
|