mirror of
https://github.com//cppla/ServerStatus
synced 2026-03-26 00:09:49 +08:00
fix bug
This commit is contained in:
@@ -38,7 +38,7 @@ docker build -f Dockerfile.server -t serverstatus-server .
|
|||||||
wget --no-check-certificate -qO client-linux.py 'https://raw.githubusercontent.com/cppla/ServerStatus/master/clients/client-linux.py' && nohup python3 client-linux.py SERVER={$SERVER} USER={$USER} >/dev/null 2>&1 &
|
wget --no-check-certificate -qO client-linux.py 'https://raw.githubusercontent.com/cppla/ServerStatus/master/clients/client-linux.py' && nohup python3 client-linux.py SERVER={$SERVER} USER={$USER} >/dev/null 2>&1 &
|
||||||
|
|
||||||
`Docker`:
|
`Docker`:
|
||||||
docker run -d --restart=always --name=serverstatus-client --network=host -e SERVER=127.0.0.1 -e USER=s01 cppla/serverstatus:client
|
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`:
|
||||||
docker compose -f docker-compose-client.yml up -d
|
docker compose -f docker-compose-client.yml up -d
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
version: "3"
|
|
||||||
services:
|
services:
|
||||||
serverstatus-client:
|
serverstatus-client:
|
||||||
build:
|
build:
|
||||||
@@ -8,16 +7,17 @@ services:
|
|||||||
container_name: serverstatus-client
|
container_name: serverstatus-client
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
pid: host
|
||||||
environment:
|
environment:
|
||||||
SERVER: "${SERVER:-127.0.0.1}"
|
SERVER: "${SERVERSTATUS_SERVER:-127.0.0.1}"
|
||||||
USER: "${USER:-s01}"
|
USER: "${SERVERSTATUS_USER:-s01}"
|
||||||
PORT: "${PORT:-35601}"
|
PORT: "${SERVERSTATUS_PORT:-35601}"
|
||||||
PASSWORD: "${PASSWORD:-USER_DEFAULT_PASSWORD}"
|
PASSWORD: "${SERVERSTATUS_PASSWORD:-USER_DEFAULT_PASSWORD}"
|
||||||
INTERVAL: "${INTERVAL:-1}"
|
INTERVAL: "${SERVERSTATUS_INTERVAL:-1}"
|
||||||
PROBEPORT: "${PROBEPORT:-80}"
|
PROBEPORT: "${SERVERSTATUS_PROBEPORT:-80}"
|
||||||
PROBE_PROTOCOL_PREFER: "${PROBE_PROTOCOL_PREFER:-ipv4}"
|
PROBE_PROTOCOL_PREFER: "${SERVERSTATUS_PROBE_PROTOCOL_PREFER:-ipv4}"
|
||||||
PING_PACKET_HISTORY_LEN: "${PING_PACKET_HISTORY_LEN:-100}"
|
PING_PACKET_HISTORY_LEN: "${SERVERSTATUS_PING_PACKET_HISTORY_LEN:-100}"
|
||||||
CU: "${CU:-cu.tz.cloudcpp.com}"
|
CU: "${SERVERSTATUS_CU:-cu.tz.cloudcpp.com}"
|
||||||
CT: "${CT:-ct.tz.cloudcpp.com}"
|
CT: "${SERVERSTATUS_CT:-ct.tz.cloudcpp.com}"
|
||||||
CM: "${CM:-cm.tz.cloudcpp.com}"
|
CM: "${SERVERSTATUS_CM:-cm.tz.cloudcpp.com}"
|
||||||
CLIENT: "${CLIENT:-linux}"
|
CLIENT: "${SERVERSTATUS_CLIENT:-linux}"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
version: "3"
|
|
||||||
services:
|
services:
|
||||||
serverstatus-server:
|
serverstatus-server:
|
||||||
build:
|
build:
|
||||||
@@ -11,7 +10,7 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
container_name: serverstatus-server
|
container_name: serverstatus-server
|
||||||
restart: unless-stopped
|
restart: unless-stoppeddocker-compose-server.yml
|
||||||
networks:
|
networks:
|
||||||
serverstatus-network:
|
serverstatus-network:
|
||||||
ipv4_address: 172.23.0.2
|
ipv4_address: 172.23.0.2
|
||||||
|
|||||||
Reference in New Issue
Block a user