mirror of
https://github.com//cppla/ServerStatus
synced 2025-05-14 20:39:49 +08:00
docker compose healthcheck
This commit is contained in:
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…
x
Reference in New Issue
Block a user