- Create unified Dockerfile with multi-stage build (Node + Python) - FastAPI now serves React static files directly - Remove frontend service and nginx dependency - Simplify docker-compose to single service - All routes work without proxy configuration
24 lines
598 B
YAML
24 lines
598 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: ai-photo-edit
|
|
ports:
|
|
- "3080:8000"
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./scripts:/scripts
|
|
environment:
|
|
- DATABASE_URL=sqlite:///./data/ai_photo_edit.db
|
|
- SECRET_KEY=${SECRET_KEY:-change-this-secret-key-in-production}
|
|
- AI_PROVIDER=${AI_PROVIDER:-mock}
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
|
- STABILITY_API_KEY=${STABILITY_API_KEY:-}
|
|
- REPLICATE_API_KEY=${REPLICATE_API_KEY:-}
|
|
- CORS_ORIGINS=*
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
data:
|