obsidian-notes/工具/Gotify.md
2024-04-15 11:48:44 +08:00

45 lines
909 B
Markdown
Raw Permalink 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.

# 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
```