ServerStatus-Rust icon indicating copy to clipboard operation
ServerStatus-Rust copied to clipboard

Docker部署server status 通过浏览器访问不能正常显示内容

Open piggy2011 opened this issue 9 months ago • 1 comments

Checklist

  • [x] 我已经将版本更新到最新 Release 版
  • [x] 我已经详细阅读文档, 仍然无法解决
  • [x] 我已经搜索已有的 Issues | Discussions, 仍然无法解决
  • [x] 我已经尝试过 Google 搜索仍然无法解决

💻 系统环境

Ubuntu

🐛 问题描述

通过docker成功部署server status, log信息一切正常,

root@ip-172-31-33-124:/home/ubuntu/server-status-rust# docker logs stat_server ✨ stat_server v1.8.1 (1dd5c41, 2024-03-18 14:43:14 UTC, rustc 1.76.0, x86_64-unknown-linux-musl) ✨ run in normal mode, load conf from local file `/config.toml ✨ admin_user: admin ✨ admin_pass: 4a7d9a75-0618-489f-ae5b-242e7d925d62 🚀 listening on http://0.0.0.0:8080 🚀 listening on grpc://0.0.0.0:9394 root@ip-172-31-33-124:/home/ubuntu/server-status-rust# cat docker-compose.yml version: "3"

services: stat_server: image: idoge/stat_server:latest container_name: stat_server restart: unless-stopped volumes: - /etc/localtime:/etc/localtime:ro - ./config.toml:/config.toml - ./stats.json:/stats.json ports: - 8088:8080 - 9394:9394

root@ip-172-31-33-124:/home/ubuntu/server-status-rust#

但是通过浏览器正常访问页面无法正常显示内容,具体请见截图。

Image

🚦 期望结果

希望能够实现正常访问server status 面板

📷 复现步骤

正常通过docker方式部署,创建目录server-status-rust, 在该目录下执行以下指令

wget --no-check-certificate -qO docker-compose.yml 'https://raw.githubusercontent.com/zdz/ServerStatus-Rust/master/docker-compose.yml' wget --no-check-certificate -qO config.toml 'https://raw.githubusercontent.com/zdz/ServerStatus-Rust/master/config.toml' touch stats.json docker compose up -d

📝 补充信息

No response

piggy2011 avatar Apr 03 '25 14:04 piggy2011

It's normal to see this page after the initial deployment is complete. You will then need to continue the deployment in the client.

l-deo avatar Jul 22 '25 02:07 l-deo