Serverstatus 美化版部署

一体化安装脚本

1
wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/status.sh && chmod +x status.sh && bash status.sh s

Serverstatus 默认版安装

image-20231008154335148

下载默认配置文件

1
wget --no-check-certificate -qO ./serverstatus-config.json https://raw.githubusercontent.com/cppla/ServerStatus/master/server/config.json && mkdir ./serverstatus-monthtraffic 

docker-compose如下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
version: '3'
services:
serverstatus:
image: cppla/serverstatus:latest
restart: always
container_name: serverstatus
ports:
- 8888:80
- 3555:35601
environment:
- ./serverstatus-config.json:/ServerStatus/server/config.json
- ./serverstatus-monthtraffic:/usr/share/nginx/html/json
networks:
- serverstatus
networks:
serverstatus:
driver: bridge