mirror of
https://github.com/thecyberlearn/quantumtaskai-caprover.git
synced 2026-08-18 07:52:55 +00:00
- Add docker-compose.yml for Dokploy deployment - Add Dockerfile optimized for production - Add nginx.conf for SSL and reverse proxy - Update Django settings for ai.quantumtaskai.com domain - Add Neon database configuration - Add deployment guides and environment generators - Remove CapRover specific files
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
web:
|
|
build: .
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- DEBUG=false
|
|
- ALLOWED_HOSTS=ai.quantumtaskai.com,*.quantumtaskai.com
|
|
- CSRF_TRUSTED_ORIGINS=https://ai.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
|
|
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- static_volume:/var/www/static:ro
|
|
- media_volume:/var/www/media:ro
|
|
- /etc/letsencrypt:/etc/letsencrypt:ro
|
|
depends_on:
|
|
- web
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
static_volume:
|
|
media_volume:
|