Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
piggy2011 opened this issue Apr 3, 2025 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@piggy2011
Copy link

Checklist

  • 我已经将版本更新到最新 Release 版
  • 我已经详细阅读文档, 仍然无法解决
  • 我已经搜索已有的 Issues | Discussions, 仍然无法解决
  • 我已经尝试过 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 piggy2011 added the bug Something isn't working label Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant