подправил порты
This commit is contained in:
6
.env
6
.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
|
||||
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
|
||||
@@ -31,7 +31,7 @@ services:
|
||||
- staticfiles:/app/staticfiles:ro
|
||||
- mediafiles:/app/media:ro
|
||||
ports:
|
||||
- "8085:80"
|
||||
- "80:8000"
|
||||
depends_on:
|
||||
- web
|
||||
|
||||
|
||||
@@ -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 "$@"
|
||||
Reference in New Issue
Block a user