Skip to content

Commit

Permalink
healthcheck *MUST* exit with 1 (any nonzero code is not accepted) on …
Browse files Browse the repository at this point in the history
…failure
  • Loading branch information
rambo committed Jan 29, 2024
1 parent 50d36a1 commit 63528e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ services:
miniwerk:
condition: service_completed_successfully
healthcheck:
test: 'rasenmaeher_api healthcheck'
test: 'rasenmaeher_api healthcheck || exit 1'
interval: 5s
timeout: 5s
retries: 3
Expand Down Expand Up @@ -420,7 +420,7 @@ services:
cfssl:
condition: service_healthy
healthcheck:
test: 'curl -s localhost:5666/healthcheck'
test: 'curl -s localhost:5666/healthcheck || exit 1'
interval: 5s
timeout: 5s
retries: 3
Expand Down Expand Up @@ -498,7 +498,7 @@ services:
rmfpapi:
condition: service_healthy
healthcheck:
test: 'curl -s localhost:5666/healthcheck'
test: 'curl -s localhost:5666/healthcheck || exit 1'
interval: 5s
timeout: 5s
retries: 3
Expand Down Expand Up @@ -655,7 +655,7 @@ services:
takapi:
condition: service_healthy
healthcheck:
test: 'takrmapi healthcheck'
test: 'takrmapi healthcheck || exit 1'
interval: 5s
timeout: 5s
retries: 3
Expand Down Expand Up @@ -686,7 +686,7 @@ services:
takrmapi:
condition: service_healthy
healthcheck:
test: 'curl -s localhost:5666/healthcheck'
test: 'curl -s localhost:5666/healthcheck || exit 1'
interval: 5s
timeout: 5s
retries: 3
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ services:
miniwerk:
condition: service_completed_successfully
healthcheck:
test: 'rasenmaeher_api healthcheck'
test: 'rasenmaeher_api healthcheck || exit 1'
interval: 5s
timeout: 5s
retries: 3
Expand Down Expand Up @@ -396,7 +396,7 @@ services:
miniwerk:
condition: service_completed_successfully
healthcheck:
test: 'curl -s localhost:5666/healthcheck'
test: 'curl -s localhost:5666/healthcheck || exit 1'
interval: 5s
timeout: 5s
retries: 3
Expand Down Expand Up @@ -467,7 +467,7 @@ services:
rmfpapi:
condition: service_healthy
healthcheck:
test: 'curl -s localhost:5666/healthcheck'
test: 'curl -s localhost:5666/healthcheck || exit 1'
interval: 5s
timeout: 5s
retries: 3
Expand Down Expand Up @@ -620,7 +620,7 @@ services:
takapi:
condition: service_healthy
healthcheck:
test: 'takrmapi healthcheck'
test: 'takrmapi healthcheck || exit 1'
interval: 5s
timeout: 5s
retries: 3
Expand Down Expand Up @@ -651,7 +651,7 @@ services:
takrmapi:
condition: service_healthy
healthcheck:
test: 'curl -s localhost:5666/healthcheck'
test: 'curl -s localhost:5666/healthcheck || exit 1'
interval: 5s
timeout: 5s
retries: 3
Expand Down

0 comments on commit 63528e5

Please sign in to comment.