fix(deploy): run database seed from compiled dist in Docker
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
```text
|
||||
浏览器
|
||||
├─ :8080 player (Nginx) ── /api、/uploads ──► api (NestJS :3000)
|
||||
├─ :8082 player (Nginx) ── /api、/uploads ──► api (NestJS :3000)
|
||||
└─ :8081 admin (Nginx) ── /api ────────────► api (NestJS :3000)
|
||||
|
||||
api ──► postgres:5432
|
||||
@@ -19,7 +19,7 @@ api ──► postgres:5432
|
||||
|
||||
| 容器 | 默认端口 | 说明 |
|
||||
|------|----------|------|
|
||||
| `thebet365-player` | 8080 | 玩家 H5 前台 |
|
||||
| `thebet365-player` | 8082 | 玩家 H5 前台 |
|
||||
| `thebet365-admin` | 8081 | 管理后台(平台 + 代理) |
|
||||
| `thebet365-api` | 3000 | NestJS API / Swagger |
|
||||
| `thebet365-postgres` | 不对外暴露 | PostgreSQL 16 |
|
||||
@@ -84,7 +84,7 @@ docker compose -f docker-compose.prod.yml --env-file .env.docker logs -f api
|
||||
|
||||
| 服务 | 地址 |
|
||||
|------|------|
|
||||
| 玩家前台 | http://服务器IP:8080 |
|
||||
| 玩家前台 | http://服务器IP:8082 |
|
||||
| 管理后台 | http://服务器IP:8081 |
|
||||
| API 文档 | http://服务器IP:3000/api/docs |
|
||||
|
||||
@@ -111,7 +111,7 @@ docker compose -f docker-compose.prod.yml --env-file .env.docker logs -f api
|
||||
|
||||
```nginx
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
proxy_pass http://127.0.0.1:8082;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
@@ -119,7 +119,7 @@ location / {
|
||||
}
|
||||
```
|
||||
|
||||
**管理站** — 将 `8080` 改为 `8081`。
|
||||
**管理站** — 将 `8082` 改为 `8081`。
|
||||
|
||||
API 端口 3000 建议**不要**直接公网暴露;Swagger 仅供内网或通过 VPN 访问。
|
||||
|
||||
@@ -133,7 +133,7 @@ API 端口 3000 建议**不要**直接公网暴露;Swagger 仅供内网或通
|
||||
|------|--------|------|------|
|
||||
| 平台管理员 | admin | Admin@123 | 管理后台 :8081 |
|
||||
| 一级代理 | agent1 | Agent@123 | 管理后台 :8081 |
|
||||
| 玩家 | player1 | Player@123 | 玩家前台 :8080 |
|
||||
| 玩家 | player1 | Player@123 | 玩家前台 :8082 |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user