Skip to content

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

@piggy2011

Description

@piggy2011

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions