Fix port conflict issue - use simplified docker-compose for Dokploy

- Remove nginx container (Dokploy handles reverse proxy)
- Use port 3000 for web service to avoid conflicts
- Let Dokploy handle SSL and routing
- Simplified architecture works better with Dokploy
This commit is contained in:
thecyberlearn 2025-09-06 10:28:43 +05:30
parent d5a9514bd3
commit 5ffec098f0

View File

@ -2,11 +2,11 @@ services:
web: web:
build: . build: .
ports: ports:
- "8000:8000" - "3000:8000"
environment: environment:
- DEBUG=false - DEBUG=false
- ALLOWED_HOSTS=ai.quantumtaskai.com,*.quantumtaskai.com - ALLOWED_HOSTS=ai.quantumtaskai.com,*.quantumtaskai.com,localhost,127.0.0.1
- CSRF_TRUSTED_ORIGINS=https://ai.quantumtaskai.com - CSRF_TRUSTED_ORIGINS=https://ai.quantumtaskai.com,https://quantumtaskai.com
- DATABASE_URL=${NEON_DATABASE_URL} - DATABASE_URL=${NEON_DATABASE_URL}
- SECRET_KEY=${SECRET_KEY} - SECRET_KEY=${SECRET_KEY}
- EMAIL_HOST_USER=${EMAIL_HOST_USER} - EMAIL_HOST_USER=${EMAIL_HOST_USER}
@ -27,20 +27,6 @@ services:
retries: 3 retries: 3
start_period: 40s 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: volumes:
static_volume: static_volume:
media_volume: media_volume: