Skip to content

Commit

Permalink
Make healthcheck variables configurable in .env (getsentry#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminvakil authored Jan 10, 2022
1 parent 7eb16f3 commit 433493b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ SENTRY_IMAGE=getsentry/sentry:nightly
SNUBA_IMAGE=getsentry/snuba:nightly
RELAY_IMAGE=getsentry/relay:nightly
SYMBOLICATOR_IMAGE=getsentry/symbolicator:nightly
WAL2JSON_VERSION=latest
WAL2JSON_VERSION=latest
HEALTHCHECK_INTERVAL=30s
HEALTHCHECK_TIMEOUT=60s
HEALTHCHECK_RETRIES=5
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ x-healthcheck-defaults: &healthcheck_defaults
# https://github.com/moby/moby/issues/39102
# https://github.com/moby/moby/issues/39388
# https://github.com/getsentry/self-hosted/issues/1000
interval: 30s
timeout: 60s
retries: 5
interval: "$HEALTHCHECK_INTERVAL"
timeout: "$HEALTHCHECK_TIMEOUT"
retries: "$HEALTHCHECK_RETRIES"
start_period: 10s
x-sentry-defaults: &sentry_defaults
<<: *restart_policy
Expand Down

0 comments on commit 433493b

Please sign in to comment.