This commit is contained in:
r0mchik 2025-06-05 12:19:12 +07:00
parent 75b55eb9a3
commit 9fc69f633c
2 changed files with 3 additions and 15 deletions

View File

@ -1,9 +1,9 @@
services:
web:
container_name: liquid_web
build:
context: ../web
dockerfile: Dockerfiles/Dockerfile
container_name: liquid_web
command: >
sh -c "python manage.py collectstatic --noinput &&
daphne -b 0.0.0.0 -p 8106 app.asgi:application"
@ -19,19 +19,6 @@ services:
- redis
restart: always
# nginx:
# build: ./nginx/dev
# # image: nginx:latest
# ports:
# - "80:80"
# volumes:
# # - ./nginx/nginx.conf:/etc/nginx/nginx.conf
# - ./nginx/nginx/conf.d/nginx.conf:/etc/nginx/conf.d/nginx.conf
# depends_on:
# - web
# restart: always
redis:
image: redis:alpine

View File

@ -55,9 +55,10 @@ MIDDLEWARE = [
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'app.middleware.LoginRequiredMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'app.middleware.LoginRequiredMiddleware',
]
LOGIN_URL = '/login/'