From 8fa2aec8b0ab388f431738b664bd72b88d0dc5af Mon Sep 17 00:00:00 2001 From: MonkeyStrongTogether Date: Fri, 22 May 2026 18:01:06 +0200 Subject: [PATCH] RM Nginx --- splitchat/docker-compose.yml | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/splitchat/docker-compose.yml b/splitchat/docker-compose.yml index dca5902..42b6bd0 100644 --- a/splitchat/docker-compose.yml +++ b/splitchat/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.8' - services: redis: image: redis:7-alpine @@ -34,14 +32,14 @@ services: web: build: . - expose: - - "8000" + ports: + - "8001:8000" # Expose on host port 8001 volumes: - static_volume:/app/staticfiles - media_volume:/app/media environment: - - SECRET_KEY=${SECRET_KEY} - - DEBUG=${DEBUG:-False} + - SECRET_KEY=${SECRET_KEY:-dev-secret-key-change-me} + - DEBUG=${DEBUG:-True} - ALLOWED_HOSTS=${ALLOWED_HOSTS:-localhost,127.0.0.1} - DATABASE_URL=postgres://splitchat:${DB_PASSWORD:-splitchat_password_123}@db:5432/splitchat - REDIS_URL=redis://redis:6379/0 @@ -54,21 +52,6 @@ services: networks: - splitchat_network - # Optional: Nginx for serving static files (if you want to offload from Django) - nginx: - image: nginx:alpine - ports: - - "8002:80" - volumes: - - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro - - static_volume:/static:ro - - media_volume:/media:ro - depends_on: - - web - restart: unless-stopped - networks: - - splitchat_network - volumes: postgres_data: redis_data: