This commit is contained in:
2024-12-21 21:56:15 +09:00
parent 1e64a432ab
commit c535a51953
42 changed files with 1069 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
FROM python:3.10-slim
WORKDIR /app
# Копируем весь проект в контейнер
COPY ../../ /app
RUN chmod +x .docker/scheduler/entrypoint.sh
ENTRYPOINT [".docker/scheduler/entrypoint.sh"]
# Устанавливаем зависимости только для scheduler
RUN pip install --upgrade pip && pip install --no-cache-dir -r .docker/scheduler/requirements.txt
# Команда запуска для планировщика
CMD ["python", "manage.py", "run_scheduler"]

View File

@@ -0,0 +1,6 @@
.venv
.venv/
.log
__pycache__
.history
.vscode

View File

@@ -0,0 +1,7 @@
#!/bin/sh
# Выполняем миграции
python manage.py migrate --no-input
# Запускаем приложение
exec "$@"

View File

@@ -0,0 +1,44 @@
ace_tools
aiohappyeyeballs
aiohttp
aiosignal
APScheduler
Django
django-environ
django-extensions
django-filter
django-health-check
django-jazzmin
django-jet
et_xmlfile
fonttools
fpdf2
geoip2
git-filter-repo
httpcore
httpx
jsonschema
jsonschema-specifications
maxminddb
multidict
PyMySQL
numpy
openpyxl
pandas
pathspec
pillow
propcache
psycopg
PyMySQL
python-dateutil
python-decouple
python-dotenv
python-telegram-bot
PyYAML
requests
sqlparse
ua-parser
ua-parser-builtins
user-agents
yarl
cryptography