File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ sidebar_position : 9
3+ title : 部署管理后台(可选)
4+ ---
5+
6+ ::: info
7+ 管理后台的功能还在不断迭代中,目前正处于前期体验版
8+ 后续会不断丰富内部的内容
9+ :::
10+
11+ 从` github ` 获取最新的管理后台配置:
12+ ``` bash
13+ wget https://raw.githubusercontent.com/msgbyte/tailchat/master/docker/admin.yml
14+ ```
15+
16+ 在环境变量 ` docker-compose.env ` 中设置管理后台的账号和密码:
17+ ``` ini
18+ ADMIN_USER =tailchat
19+ ADMIN_PASS =<这里写入独立的后台密码, 不要告知其他人>
20+ ```
21+
22+ 然后使用[ 多文件方式] ( https://docs.docker.com/compose/extends/#understanding-multiple-compose-files ) 启动应用:
23+ ``` bash
24+ docker compose -f docker-compose.yml -f admin.yml up -d
25+ ```
26+
27+ * 注意先后顺序,因为` admin.yml ` 依赖` docker-compose.yml ` 所以要放在后面*
28+
29+ 此时访问后台地址后面追加` /admin/ ` 即可访问:
30+ ```
31+ https://tailchat.example.com/admin/
32+ ```
33+
34+ * 注意不要忘记在最后有一个` / ` *
Original file line number Diff line number Diff line change @@ -177,3 +177,8 @@ docker volume ls | grep "tailchat-server"
177177:::info
178178完整的环境变量可以查询 [ 环境变量] ( ./environment.md )
179179:::
180+
181+ ## 更多部署相关文档
182+
183+ - [ 搭建 https 网关(可选)] ( ./https-gateway.md )
184+ - [ 部署管理后台(可选)] ( ./admin.md )
You can’t perform that action at this time.
0 commit comments