mirror of https://github.com/cppla/ServerStatus
docker compose healthcheck
parent
91f11dad76
commit
d75d5438a3
|
@ -5,6 +5,11 @@ services:
|
|||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: serverstatus_server
|
||||
healthcheck:
|
||||
test: curl --fail http://localhost:80 || bash -c 'kill -s 15 -1 && (sleep 10; kill -s 9 -1)'
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
container_name: serverstatus
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
|
|
Loading…
Reference in New Issue