Files
users/README_website.md

38 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# website 编排(玩值电竞 + 神射手)
- **玩值电竞**http://localhost:3001
- **神射手**http://localhost:3117
## 首次使用(必做一次)
1. **先启动 Docker Desktop**
从「应用程序」打开 Docker Desktop等待菜单栏/托盘图标就绪(不再转圈)。
若未安装:从 https://www.docker.com/products/docker-desktop 安装。
2. **在本目录执行**
```bash
./启动website.sh
```
脚本会自动:若 Docker 未运行则尝试打开 Docker Desktop等待就绪后执行 `docker compose up -d --build`。
3. 浏览器打开 **http://localhost:3001** 即可访问玩值电竞。
## 之后每次
- Docker Desktop 已开:直接 `./启动website.sh` 或 `docker compose up -d --build`。
- Docker 未开:先打开 Docker Desktop就绪后再执行上述命令。
## 报错「Cannot connect to the Docker daemon」
表示 Docker 未运行。请先打开 Docker Desktop 并等待完全启动,再执行 `./启动website.sh`。
## 浏览器 localhost:3001 报 ERR_CONNECTION_REFUSED
可能原因:容器在跑但容器内进程已退出、或端口未正确映射。在本目录执行:
```bash
./诊断并修复3001.sh
```
脚本会:查看容器状态与日志 → 执行 `docker compose down` 再 `up -d --build` → 检查 3001 是否被监听。完成后在浏览器访问 http://localhost:3001。