Skip to content

Commit

Permalink
perf($Docker): support Docker health check
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
johnnymillergh committed Feb 20, 2021
1 parent 38f36c1 commit 7a2ce2b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ services:
environment:
JAVA_TOOL_OPTIONS: "${JAVA_TOOL_OPTIONS}"
TZ: Asia/Hong_Kong
healthcheck:
test: "wget localhost:8761/actuator/health -q -O - > /dev/null 2>&1"
interval: 20s
timeout: 5s
retries: 5
start_period: 40s
networks:
muscle_and_fitness_network:

Expand All @@ -165,6 +171,12 @@ services:
environment:
JAVA_TOOL_OPTIONS: "${JAVA_TOOL_OPTIONS}"
TZ: Asia/Hong_Kong
healthcheck:
test: "wget localhost:8080/actuator/health -q -O - > /dev/null 2>&1"
interval: 20s
timeout: 5s
retries: 5
start_period: 40s
networks:
muscle_and_fitness_network:

Expand All @@ -181,6 +193,12 @@ services:
environment:
JAVA_TOOL_OPTIONS: "${JAVA_TOOL_OPTIONS}"
TZ: Asia/Hong_Kong
healthcheck:
test: "wget localhost:8800/actuator/health -q -O - > /dev/null 2>&1"
interval: 20s
timeout: 5s
retries: 5
start_period: 40s
networks:
muscle_and_fitness_network:

Expand All @@ -197,6 +215,12 @@ services:
environment:
JAVA_TOOL_OPTIONS: "${JAVA_TOOL_OPTIONS}"
TZ: Asia/Hong_Kong
healthcheck:
test: "wget localhost:8801/actuator/health -q -O - > /dev/null 2>&1"
interval: 20s
timeout: 5s
retries: 5
start_period: 40s
networks:
muscle_and_fitness_network:

Expand All @@ -213,6 +237,12 @@ services:
environment:
JAVA_TOOL_OPTIONS: "${JAVA_TOOL_OPTIONS}"
TZ: Asia/Hong_Kong
healthcheck:
test: "wget localhost:8802/actuator/health -q -O - > /dev/null 2>&1"
interval: 20s
timeout: 5s
retries: 5
start_period: 40s
networks:
muscle_and_fitness_network:

Expand Down

0 comments on commit 7a2ce2b

Please sign in to comment.