From 5ffec098f097aabcb1fd3f06a7459635a43ea63e Mon Sep 17 00:00:00 2001 From: thecyberlearn Date: Sat, 6 Sep 2025 10:28:43 +0530 Subject: [PATCH] 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 --- docker-compose.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1c1634c..a7388e6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,11 +2,11 @@ services: web: build: . ports: - - "8000:8000" + - "3000:8000" environment: - DEBUG=false - - ALLOWED_HOSTS=ai.quantumtaskai.com,*.quantumtaskai.com - - CSRF_TRUSTED_ORIGINS=https://ai.quantumtaskai.com + - 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} @@ -27,20 +27,6 @@ services: 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: