45 lines
909 B
Markdown
45 lines
909 B
Markdown
# Gotify
|
||
|
||
截止23.12.1日,tx云安装了gotify进行TT服务器信息推送, [服务器地址](https://106.52.193.182:10004/),用户名`test`,密码同。
|
||
|
||
## 安装
|
||
确保docker已安装,执行以下命令进行安装:
|
||
```shell
|
||
docker run -d -e TZ="Asia/Shanghai" -e GOTIFY_SERVER_PORT=10004 -p 10004:10004 -v /root/gotify/data:/app/data gotify/server:latest
|
||
```
|
||
## 更新
|
||
先查询名字 `docker ps` 结果
|
||
|
||
1. 查询
|
||
|
||
```
|
||
docker ps
|
||
```
|
||
对应`NAMES`列的值即为名字,可知为`eloquent_lovelace`
|
||
2. 停止
|
||
|
||
|
||
```
|
||
docker stop eloquent_lovelace
|
||
```
|
||
|
||
3. 备份
|
||
|
||
```shell
|
||
cp -r /root/gotify/data /root/gotify/data.bak
|
||
```
|
||
|
||
4. 更新
|
||
|
||
```shell
|
||
docker pull gotify/server:latest
|
||
```
|
||
|
||
5. 启动
|
||
|
||
与安装命令一致,可保留配置。
|
||
```shell
|
||
docker run -d -e TZ="Asia/Shanghai" -e GOTIFY_SERVER_PORT=10004 -p 10004:10004 -v /root/gotify/data:/app/data gotify/server:latest
|
||
```
|
||
|