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 表