Last active
September 2, 2024 03:39
-
-
Save agcom/99a6d86d88a26d900c886cf1cd83fc84 to your computer and use it in GitHub Desktop.
Docker Compose NATS health-check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
nats: | |
image: nats:2.10.16-alpine3.19 | |
command: -m 8222 | |
healthcheck: | |
test: wget http://localhost:8222/healthz -q -S -O - | |
start_period: 3s | |
retries: 3 | |
timeout: 3s | |
interval: 14s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment