mirror of
https://github.com/thecyberlearn/quantumtaskai-caprover.git
synced 2026-08-18 07:52:55 +00:00
- Remove port mapping (ports: 3000:8000) - Use expose: 8000 instead - lets Dokploy handle networking - No more port conflicts with host system - Dokploy reverse proxy will connect to exposed port 8000
33 lines
968 B
YAML
33 lines
968 B
YAML
services:
|
|
web:
|
|
build: .
|
|
expose:
|
|
- "8000"
|
|
environment:
|
|
- DEBUG=false
|
|
- ALLOWED_HOSTS=ai.quantumtaskai.com,*.quantumtaskai.com,localhost,127.0.0.1
|
|
- CSRF_TRUSTED_ORIGINS=https://ai.quantumtaskai.com,https://quantumtaskai.com
|
|
- DATABASE_URL=${NEON_DATABASE_URL}
|
|
- SECRET_KEY=${SECRET_KEY}
|
|
- EMAIL_HOST_USER=${EMAIL_HOST_USER}
|
|
- EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD}
|
|
- STRIPE_SECRET_KEY=${STRIPE_SECRET_KEY}
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
- GROQ_API_KEY=${GROQ_API_KEY}
|
|
- SERPAPI_API_KEY=${SERPAPI_API_KEY}
|
|
- OPENWEATHER_API_KEY=${OPENWEATHER_API_KEY}
|
|
volumes:
|
|
- static_volume:/app/staticfiles
|
|
- media_volume:/app/media
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
static_volume:
|
|
media_volume:
|