diff --git a/docker-compose copy.yml b/docker-compose copy.yml index 132c138..198934e 100644 --- a/docker-compose copy.yml +++ b/docker-compose copy.yml @@ -1,21 +1,11 @@ +version: '3.8' + services: web: build: . volumes: - .:/app - # Больше не открываем порт 8080 наружу для Django, - # теперь его будет "прикрывать" Nginx - expose: - - "8000" - command: gunicorn core.wsgi:application --bind 0.0.0.0:8000 --workers 3 - - nginx: - image: nginx:latest - volumes: - - ./nginx/default.conf:/etc/nginx/conf.d/default.conf - - ./staticfiles:/app/staticfiles - - ./media:/app/media ports: - - "8080:80" - depends_on: - - web \ No newline at end of file + - "8080:8000" + environment: + - DEBUG=1 \ No newline at end of file diff --git a/default.conf b/nginx/default.conf similarity index 100% rename from default.conf rename to nginx/default.conf