Skip to content

Commit 87a369a

Browse files
doc : add explanations on HEALTH_CHECK
1 parent d3787d9 commit 87a369a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,19 @@ sudo bash run.sh
325325
# Set this to 'real' in the .env file for production environments.
326326
APP_ENV=real
327327
328+
# This path is used for both internal and external health checks.
329+
# Note: Do not include a leading slash ("/") at the start of the path.
330+
# Example: "api/v1/health" (correct), "/api/v1/health" (incorrect)
331+
APP_HEALTH_CHECK_PATH=api/v1/health
332+
333+
# The BAD & GOOD conditions are checked using an "AND" condition.
334+
# To ignore the "BAD_APP_HEALTH_CHECK_PATTERN", set it to a non-existing value (e.g., "###lsdladc").
335+
BAD_APP_HEALTH_CHECK_PATTERN=DOWN
336+
337+
# Pattern required for a successful health check.
338+
GOOD_APP_HEALTH_CHECK_PATTERN=UP
339+
340+
328341
# The 'real' setting requires defining 'DOCKER_COMPOSE_REAL_SELECTIVE_VOLUMES'.
329342
DOCKER_COMPOSE_REAL_SELECTIVE_VOLUMES=["/my-host/files/:/in-container/files", "/my-host/java-spring-project/src/main/resources:/in-container/java-spring-project/src/main/resources"]
330343
# Check if the host folder or file exists

0 commit comments

Comments
 (0)