version 1.1.8

This commit is contained in:
cppla
2026-07-01 11:55:45 +08:00
parent f24a70b9d7
commit c58eaf6ff5
16 changed files with 1985 additions and 853 deletions
+3 -1
View File
@@ -5,12 +5,14 @@ services:
dockerfile: Dockerfile.server
image: cppla/serverstatus:server
healthcheck:
test: curl --fail http://localhost:80 || bash -c 'kill -s 15 -1 && (sleep 10; kill -s 9 -1)'
test: ["CMD-SHELL", "python3 -c \"import os,urllib.request; pid=int(open('/tmp/serverstatus-sergate.pid').read().strip()); os.kill(pid,0); urllib.request.urlopen('http://127.0.0.1/',timeout=2).read(1)\""]
interval: 30s
timeout: 10s
retries: 5
container_name: serverstatus-server
restart: unless-stopped
environment:
ADMIN_TOKEN: "${ADMIN_TOKEN:-}"
networks:
serverstatus-network:
ipv4_address: 172.23.0.2