From ed64656a06970776372fd8c816e8d597bd82b772 Mon Sep 17 00:00:00 2001 From: cppla Date: Fri, 27 Feb 2026 17:57:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- docker-compose-client.yml | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index dd8fdc2..06ff9e8 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ wget --no-check-certificate -qO client-linux.py 'https://raw.githubusercontent.c docker run -d --restart=always --name=serverstatus-client --network=host --pid=host -e SERVER=127.0.0.1 -e USER=s01 cppla/serverstatus:client `Docker-compose`: -docker compose -f docker-compose-client.yml up -d +SERVER='127.0.0.1' USER='s01' docker compose -f docker-compose-client.yml up -d --force-recreate `Dockerfile.client`(本地构建客户端): docker build -f Dockerfile.client -t serverstatus-client . diff --git a/docker-compose-client.yml b/docker-compose-client.yml index 59414f4..d1699b3 100644 --- a/docker-compose-client.yml +++ b/docker-compose-client.yml @@ -9,15 +9,15 @@ services: network_mode: host pid: host environment: - SERVER: "${SERVERSTATUS_SERVER:-127.0.0.1}" - USER: "${SERVERSTATUS_USER:-s01}" - PORT: "${SERVERSTATUS_PORT:-35601}" - PASSWORD: "${SERVERSTATUS_PASSWORD:-USER_DEFAULT_PASSWORD}" - INTERVAL: "${SERVERSTATUS_INTERVAL:-1}" - PROBEPORT: "${SERVERSTATUS_PROBEPORT:-80}" - PROBE_PROTOCOL_PREFER: "${SERVERSTATUS_PROBE_PROTOCOL_PREFER:-ipv4}" - PING_PACKET_HISTORY_LEN: "${SERVERSTATUS_PING_PACKET_HISTORY_LEN:-100}" - CU: "${SERVERSTATUS_CU:-cu.tz.cloudcpp.com}" - CT: "${SERVERSTATUS_CT:-ct.tz.cloudcpp.com}" - CM: "${SERVERSTATUS_CM:-cm.tz.cloudcpp.com}" - CLIENT: "${SERVERSTATUS_CLIENT:-linux}" + SERVER: "${SERVER:-127.0.0.1}" + USER: "${USER:-s01}" + PORT: "${PORT:-35601}" + PASSWORD: "${PASSWORD:-USER_DEFAULT_PASSWORD}" + INTERVAL: "${INTERVAL:-1}" + PROBEPORT: "${PROBEPORT:-80}" + PROBE_PROTOCOL_PREFER: "${PROBE_PROTOCOL_PREFER:-ipv4}" + PING_PACKET_HISTORY_LEN: "${PING_PACKET_HISTORY_LEN:-100}" + CU: "${CU:-cu.tz.cloudcpp.com}" + CT: "${CT:-ct.tz.cloudcpp.com}" + CM: "${CM:-cm.tz.cloudcpp.com}" + CLIENT: "${CLIENT:-linux}" \ No newline at end of file