From 42b378fcbcba69d904552732f18e7e6f3b6d5dfc Mon Sep 17 00:00:00 2001 From: erjemin Date: Thu, 19 Mar 2026 19:33:12 +0300 Subject: [PATCH] fix: correct sed command and paths in docker-compose.prod.yml for proper nginx config generation --- docker-compose.prod.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index cf4739e..81968b1 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -38,14 +38,14 @@ services: sh -c "python manage.py migrate --noinput && python manage.py collectstatic --noinput && mkdir -p /nginx_configs_host/nginx && - sed \"s|/home/user/app/dq-site|${HOST_PROJECT_PATH:-/home/default_user/projects/dq-site}|g\" /app/configs/nginx/dq-app--external-nginx.conf > /nginx_configs_host/nginx/nginx_dq.conf.example && + sed \"s|/home/user/app/dq-site|${HOST_PROJECT_PATH:-/home/default_user/projects/dq-site}|g\" /home/app/web/config/nginx/dq-app--external-nginx.conf > /nginx_configs_host/nginx/nginx_dq.conf.example && if [ ! -f /nginx_configs_host/nginx/dq-app--external-nginx.conf ]; then cp /nginx_configs_host/nginx/nginx_dq.conf.example /nginx_configs_host/nginx/dq-app--external-nginx.conf; echo 'INIT: Created new nginx config with correct paths'; fi && mkdir -p /app/public/media/errors && - cp /app/dicquo/templates/static_404.html /app/public/media/errors/404.html && - cp /app/dicquo/templates/static_500.html /app/public/media/errors/500.html && + cp /home/app/web/dicquo/templates/static_404.html /app/public/media/errors/404.html && + cp /home/app/web/dicquo/templates/static_500.html /app/public/media/errors/500.html && gunicorn --workers 3 --bind 0.0.0.0:8000 dicquo.wsgi:application" # 4. Проброс портов (Внешний Nginx -> localhost:8010)