chore [P-12]: kdkdk
This commit is contained in:
1 parent
c156614ee3
commit
bcdcabb4a1
12 files changed
+312
-44
No files matched your search
+6
-5
@@ -8,20 +8,21 @@ RUN apt-get update && apt-get install -y \
|
||||
pkg-config
|
||||
|
||||
# Копируем файлы зависимостей в контейнер
|
||||
COPY r.txt .
|
||||
COPY src/back/r.txt .
|
||||
|
||||
# Устанавливаем зависимости
|
||||
RUN pip install -r r.txt
|
||||
|
||||
# Копируем все файлы проекта в контейнер
|
||||
COPY . .
|
||||
|
||||
COPY src/back/ .
|
||||
COPY sys/wait-for-it.sh /usr/local/bin/wait-for-it
|
||||
# Выполняем миграции (при необходимости)
|
||||
# RUN python manage.py makemigrations
|
||||
# RUN python manage.py migrate
|
||||
|
||||
RUN chmod +x /usr/local/bin/wait-for-it
|
||||
# Открываем порт, на котором будет работать приложение
|
||||
EXPOSE 8000
|
||||
|
||||
# Команда для запуска приложения
|
||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
# CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
CMD ["wait-for-it", "db:3306", "--", "python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
@@ -43,7 +43,7 @@ CSRF_TRUSTED_ORIGINS = [
|
||||
'http://127.0.0.1',
|
||||
'http://yourdomain.com', # Add your production domain here
|
||||
]
|
||||
ALLOWED_HOSTS = ["*","portal-t",'portal9966','localhost','127.0.0.1']
|
||||
ALLOWED_HOSTS = ["*","portal-t",'portal9966','localhost','0.0.0.0']
|
||||
CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||
|
||||
Reference in new issue
Block a user