Optimized healthcheck timings

1s faster interval (to increase retry speed on faster systems), 1s shorter timeout (since it db should react in a lot less than 1s), increased retries to 12 total so all adds up to 60s of potential retry-time for older systems (e.g. RPI 3)
This commit is contained in:
MaxJa4
2022-01-31 14:27:39 +01:00
parent 6330d15ebe
commit 419821733c
3 changed files with 9 additions and 9 deletions

View File

@ -11,9 +11,9 @@ services:
- default
healthcheck:
test: ["CMD-SHELL", "psql -U $$POSTGRES_USER -d $$POSTGRES_DB --list || exit 1"]
interval: 5s
timeout: 2s
retries: 5
interval: 4s
timeout: 1s
retries: 12
web_recipes:
image: vabene1111/recipes