mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-04 21:58:54 -05:00
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:
@@ -11,9 +11,9 @@ services:
|
|||||||
- default
|
- default
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "psql -U $$POSTGRES_USER -d $$POSTGRES_DB --list || exit 1"]
|
test: ["CMD-SHELL", "psql -U $$POSTGRES_USER -d $$POSTGRES_DB --list || exit 1"]
|
||||||
interval: 5s
|
interval: 4s
|
||||||
timeout: 2s
|
timeout: 1s
|
||||||
retries: 5
|
retries: 12
|
||||||
|
|
||||||
web_recipes:
|
web_recipes:
|
||||||
image: vabene1111/recipes
|
image: vabene1111/recipes
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ services:
|
|||||||
- ./.env
|
- ./.env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "psql -U $$POSTGRES_USER -d $$POSTGRES_DB --list || exit 1"]
|
test: ["CMD-SHELL", "psql -U $$POSTGRES_USER -d $$POSTGRES_DB --list || exit 1"]
|
||||||
interval: 5s
|
interval: 4s
|
||||||
timeout: 2s
|
timeout: 1s
|
||||||
retries: 5
|
retries: 12
|
||||||
|
|
||||||
web_recipes:
|
web_recipes:
|
||||||
image: vabene1111/recipes
|
image: vabene1111/recipes
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ services:
|
|||||||
- default
|
- default
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "psql -U $$POSTGRES_USER -d $$POSTGRES_DB --list || exit 1"]
|
test: ["CMD-SHELL", "psql -U $$POSTGRES_USER -d $$POSTGRES_DB --list || exit 1"]
|
||||||
interval: 5s
|
interval: 4s
|
||||||
timeout: 2s
|
timeout: 1s
|
||||||
retries: 5
|
retries: 12
|
||||||
|
|
||||||
web_recipes:
|
web_recipes:
|
||||||
image: vabene1111/recipes
|
image: vabene1111/recipes
|
||||||
|
|||||||
Reference in New Issue
Block a user