Change backend port to 8101 and simplify Caddy config

- Changed backend port from 8000 to 8101 (avoiding port conflict)
- Added REPLICATE_API_KEY to docker-compose environment variables
- Simplified Caddyfile - only need to reverse proxy frontend
- Frontend nginx internally handles routing API calls to backend
This commit is contained in:
Claude
2026-01-24 15:55:49 +00:00
parent 122b4ce326
commit cfbb9b691f
2 changed files with 8 additions and 46 deletions
+2 -1
View File
@@ -7,7 +7,7 @@ services:
dockerfile: Dockerfile
container_name: ai-photo-edit-backend
ports:
- "8000:8000"
- "8101:8000" # External 8101, internal 8000
volumes:
- ./data:/app/data
- ./backend:/app
@@ -17,6 +17,7 @@ services:
- 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: