- Generate 18 classic eye variants in 3 styles (realistic, anime, cartoon) with 6 colors each (blue, green, brown, hazel, grey, amber) - Add scripts for generating, converting, and importing eyes: - generate_classic_eyes_ppm.py: Generate PPM images (no dependencies) - download_classic_eyes.py: Full-featured generator with PIL - startup_import_eyes.py: Import eyes on backend startup - import_saved_eyes.py: Import from saved directory - Update docker-compose to mount scripts directory - Include metadata.json for tracking eye properties
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
container_name: ai-photo-edit-backend
|
|
ports:
|
|
- "8101:8000" # External 8101, internal 8000
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./backend:/app
|
|
- ./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=http://localhost:5173,http://localhost:3000,http://localhost
|
|
restart: unless-stopped
|
|
networks:
|
|
- ai-photo-edit-network
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
container_name: ai-photo-edit-frontend
|
|
ports:
|
|
- "3080:80" # Frontend on port 3080
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
networks:
|
|
- ai-photo-edit-network
|
|
|
|
networks:
|
|
ai-photo-edit-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
data:
|