first commit

This commit is contained in:
Ashim Kumar
2026-01-09 21:06:30 +06:00
commit 11d715eb85
19 changed files with 8235 additions and 0 deletions

30
docker-compose.yml Normal file
View File

@@ -0,0 +1,30 @@
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