From 7436e047644691e9b73cac174eaba62f4cc991bd Mon Sep 17 00:00:00 2001 From: Milky0217 Date: Fri, 17 Apr 2026 20:53:39 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E8=BF=9E=E6=8E=A5=E5=92=8C=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 SSH 连接命令:ssh root@1panel-server - 说明 PostgreSQL 通过 Docker 部署 - 添加 docker ps 和 docker exec 连接命令 - 注明连接字符串和 127.0.0.1 而非 localhost --- AGENTS.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 847513e..2c8d808 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -50,6 +50,30 @@ deploy.sh # 部署脚本(支持 development/production 参 .env.example # 环境变量模板 ``` +## 服务器连接 + +### SSH 连接 +```bash +ssh root@1panel-server +``` + +### 数据库 + +PostgreSQL 通过 Docker 部署: + +```bash +# 查看容器 +docker ps | grep postgres + +# 连接数据库(容器内) +docker exec -it postgres_container psql -U postgres -d milkydata + +# 连接字符串 +postgres://milkydata:password@127.0.0.1:5432/milkydata +``` + +> 注意:Docker PostgreSQL 监听在 `127.0.0.1` 而非 `localhost` + ## 数据库表结构 ### users 表