This commit is contained in:
2026-01-28 21:08:54 +03:00
parent 4acc57a0f8
commit ecd3ec32bc
2 changed files with 8 additions and 2 deletions

View File

@@ -35,9 +35,9 @@ ENV LOG_LEVEL=INFO
# Порт приложения
EXPOSE 8000
# Healthcheck (будет переопределен в docker-compose.yml с API ключом)
# Healthcheck (использует простой endpoint /health без авторизации)
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/v1/health')" || exit 1
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
# Запуск приложения
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]