Compare commits

...

2 Commits

Author SHA1 Message Date
12c07a8108 подправил порты
All checks were successful
Deploy MES Core / deploy (push) Successful in 9s
2026-03-27 22:21:43 +03:00
5648e13ef6 подправил порты 2026-03-27 22:19:22 +03:00
3 changed files with 7 additions and 2 deletions

4
.env
View File

@@ -10,3 +10,7 @@ DB_HOST=db
# todo потом установить домен для продакшена # todo потом установить домен для продакшена
ALLOWED_HOSTS=192.168.1.108,shiftflow.tertelius.space ALLOWED_HOSTS=192.168.1.108,shiftflow.tertelius.space
CSRF_ORIGINS=http://192.168.1.108,https://shiftflow.tertelius.space 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

View File

@@ -31,7 +31,7 @@ services:
- staticfiles:/app/staticfiles:ro - staticfiles:/app/staticfiles:ro
- mediafiles:/app/media:ro - mediafiles:/app/media:ro
ports: ports:
- "8085:80" - "80:80"
depends_on: depends_on:
- web - web

View File

@@ -3,5 +3,6 @@ echo "Collecting static files..."
python manage.py collectstatic --noinput python manage.py collectstatic --noinput
echo "Applying database migrations..." echo "Applying database migrations..."
python manage.py migrate --noinput python manage.py migrate --noinput
python manage.py createsuperuser --no-input || true
echo "Starting Gunicorn..." echo "Starting Gunicorn..."
exec "$@" exec "$@"