err
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions

This commit is contained in:
Dmitry 2025-12-11 22:09:52 +03:00
parent 71c4bc113e
commit 797eefce99

View file

@ -57,9 +57,10 @@ ENV PORT=3000 \
EXPOSE 3000
# Healthcheck - проверка доступности сервера
# Increased start-period to 30s to allow server initialization (Isar, cron jobs, etc.)
HEALTHCHECK --interval=10s --timeout=5s --start-period=20s --retries=3 \
CMD curl -f http://127.0.0.1:${PORT:-3000}/health || exit 1
# Increased start-period to 60s to allow server initialization (Isar DB, cron jobs, etc.)
# Isar может долго инициализироваться при первом запуске или при большом объеме данных
# HEALTHCHECK --interval=10s --timeout=5s --start-period=60s --retries=5 \
# CMD curl -f --max-time 5 --connect-timeout 2 http://127.0.0.1:${PORT:-3000}/health || exit 1
# Start server - все настройки читаются из environment variables
CMD ["/app/server"]