diff --git a/docker-compose.yml b/docker-compose.yml index 89dd80b..0e943b6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,18 +24,17 @@ services: web: networks: - portfolio - build: + build: context: . dockerfile: ./docker/Dockerfile.web - restart: always command: sh resources/scripts/entrypoint.sh environment: - PYTHONPYCACHEPREFIX=/var/cache/pycache - volumes: - './:/code' depends_on: - db + restart: always db: image: postgres:16 diff --git a/portfolio_admin/settings.py b/portfolio_admin/settings.py index e77de10..5341a2b 100644 --- a/portfolio_admin/settings.py +++ b/portfolio_admin/settings.py @@ -165,5 +165,6 @@ CSRF_TRUSTED_ORIGINS = [ "https://serenmebel.uz", "https://www.serenmebel.uz", "https://api.serenmebel.uz", + "https://admin.promtechno.uz", ] diff --git a/resources/layout/nginx.conf b/resources/layout/nginx.conf index acdc82e..e10373b 100644 --- a/resources/layout/nginx.conf +++ b/resources/layout/nginx.conf @@ -27,7 +27,7 @@ http { server_name _; location / { - proxy_pass http://web:8001; + proxy_pass http://web:8000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https;