From 5648e13ef619032adff942a5d3899f7a8a36b790 Mon Sep 17 00:00:00 2001 From: ackFromRedmi Date: Fri, 27 Mar 2026 22:19:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=B4=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BF=D0=BE=D1=80=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 6 +++++- docker-compose.yml | 2 +- entrypoint.sh | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.env b/.env index bd85dd4..ae52174 100644 --- a/.env +++ b/.env @@ -9,4 +9,8 @@ ENV_TYPE=server DB_HOST=db # todo потом установить домен для продакшена ALLOWED_HOSTS=192.168.1.108,shiftflow.tertelius.space -CSRF_ORIGINS=http://192.168.1.108,https://shiftflow.tertelius.space \ No newline at end of file +CSRF_ORIGINS=http://192.168.1.108,https://shiftflow.tertelius.space + +DJANGO_SUPERUSER_USERNAME=ack +DJANGO_SUPERUSER_PASSWORD=123 +DJANGO_SUPERUSER_EMAIL=admin@test.ru \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 7c5de8d..62367cb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,7 +31,7 @@ services: - staticfiles:/app/staticfiles:ro - mediafiles:/app/media:ro ports: - - "8085:80" + - "80:8000" depends_on: - web diff --git a/entrypoint.sh b/entrypoint.sh index 6177c73..96bc549 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,5 +3,6 @@ echo "Collecting static files..." python manage.py collectstatic --noinput echo "Applying database migrations..." python manage.py migrate --noinput +python manage.py createsuperuser --no-input || true echo "Starting Gunicorn..." exec "$@" \ No newline at end of file