Skip to content

Commit

Permalink
Add healthchecks healthcheck (#117)
Browse files Browse the repository at this point in the history
Co-authored-by: Evgeniy Antonyuk <[email protected]>
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/DocSpace-buildtools/pulls/117
Reviewed-by: Evgeniy Antonyuk <[email protected]>
Co-authored-by: Valeria Bagisheva <[email protected]>
Co-committed-by: Valeria Bagisheva <[email protected]>
  • Loading branch information
lemmav and evgeniy-antonyuk committed Dec 24, 2024
1 parent 4387417 commit 007b117
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion install/docker/healthchecks.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
x-healthcheck:
&x-healthcheck
test: curl --fail http://127.0.0.1 || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
x-service:
&x-service-base
container_name: base
Expand All @@ -13,7 +20,9 @@ services:
<<: *x-service-base
image: "${HUB}${REPO}/${DOCKER_IMAGE_PREFIX}-healthchecks:${DOCKER_TAG}"
container_name: ${HELTHCHECKS_HOST}

healthcheck:
<<: *x-healthcheck
test: curl --fail http://${SERVICE_HELTHCHECKS}/liveness/ || exit 1
networks:
default:
name: ${NETWORK_NAME}
Expand Down

0 comments on commit 007b117

Please sign in to comment.