diff --git a/infra/docker-compose-prod.yaml b/infra/docker-compose-prod.yaml index ab7b228..2d6b564 100644 --- a/infra/docker-compose-prod.yaml +++ b/infra/docker-compose-prod.yaml @@ -28,9 +28,9 @@ services: nginx: image: ${DOCKERHUB_USERNAME}/${PROJECT_NAME}_nginx:latest ports: - - "80:80" + - "8000:80" volumes: - - static_volume:/var/html/static/ + - static_volume:/staticfiles/ - media_value:/var/html/media/ - /etc/letsencrypt:/etc/letsencrypt depends_on: diff --git a/infra/nginx/nginx.conf b/infra/nginx/nginx.conf index d09d708..212e656 100644 --- a/infra/nginx/nginx.conf +++ b/infra/nginx/nginx.conf @@ -11,12 +11,6 @@ server { proxy_set_header Host $http_host; proxy_pass http://backend:8000/admin/; } - location /static/ { - root /var/html/; - } - location /media/ { - root /var/html/; - } location / { alias /staticfiles/; index index.html;