added healthy check in main.go
extended the ping check that creates a /tmp/healthy file if ping successfull and removes that file if ping failes 3 times.
With this you can add the following to the newt docker compose to do the health check:
healthcheck:
test: ["CMD-SHELL", "test -f /tmp/healthy"]
interval: 30s
timeout: 10s
retries: 3
extended the ping check that creates a /tmp/healthy file if ping successfull and removes that file if ping failes 3 times.
With this you can add the following to the newt docker compose to do the health check:
healthcheck:
test: ["CMD-SHELL", "test -f /tmp/healthy"]
interval: 30s
timeout: 10s
retries: 3