Spaces:
zhzabcd
/
Paused

Severian commited on
Commit
08efa7b
·
1 Parent(s): 8a398ad

fix: improve database connection handling in entrypoint

Browse files

- Add timeout-based PostgreSQL connection check
- Implement max retry attempts (30 attempts, 5s between each)
- Add detailed connection attempt logging
- Maintain compatibility with existing Redis checks
- Exit gracefully if database connection fails after max attempts

References:
docker/entrypoint.sh (lines 1-33)
docker/docker-compose.yaml (lines 331-346)

1 file changed +13 -17
Dockerfile+13-17