mirror of
https://github.com//cppla/ServerStatus
synced 2025-06-01 21:29:50 +08:00
docker compose healthcheck
This commit is contained in:
parent
91f11dad76
commit
d75d5438a3
@ -5,6 +5,11 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: serverstatus_server
|
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
|
container_name: serverstatus
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user