pahvalentines/backend/docker-compose.yml
michael 9d53adaaf3 Add backend API, video generator, and frontend updates
- Add Python/FastAPI backend with Celery workers
- Add video generation with FFmpeg (spinning record animation)
- Add API endpoints: submissions, status polling, webhook, results
- Add database schema and Alembic migrations
- Update frontend pages with API integration
- Add project documentation and spec

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 10:31:58 -06:00

84 lines
2.2 KiB
YAML

version: '3.8'
services:
web:
build: .
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql://pah:pah_password@db:5432/pah
- REDIS_URL=redis://redis:6379/0
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- SONAUTO_API_KEY=${SONAUTO_API_KEY}
- SONAUTO_API_URL=https://api.sonauto.ai/v1
- WEBHOOK_BASE_URL=${WEBHOOK_BASE_URL}
- STORAGE_BASE=/app/storage
volumes:
- ../storage:/app/storage
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
celery_worker:
build: .
command: celery -A tasks.celery_app worker --loglevel=info --concurrency=4
environment:
- DATABASE_URL=postgresql://pah:pah_password@db:5432/pah
- REDIS_URL=redis://redis:6379/0
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- SONAUTO_API_KEY=${SONAUTO_API_KEY}
- SONAUTO_API_URL=https://api.sonauto.ai/v1
- WEBHOOK_BASE_URL=${WEBHOOK_BASE_URL}
- STORAGE_BASE=/app/storage
volumes:
- ../storage:/app/storage
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
celery_beat:
build: .
command: celery -A tasks.celery_app beat --loglevel=info
environment:
- DATABASE_URL=postgresql://pah:pah_password@db:5432/pah
- REDIS_URL=redis://redis:6379/0
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- SONAUTO_API_KEY=${SONAUTO_API_KEY}
- SONAUTO_API_URL=https://api.sonauto.ai/v1
- WEBHOOK_BASE_URL=${WEBHOOK_BASE_URL}
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
db:
image: postgres:15
environment:
- POSTGRES_USER=pah
- POSTGRES_PASSWORD=pah_password
- POSTGRES_DB=pah
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pah -d pah"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
postgres_data: