fix: pin PocketBase version and improve documentation

- Pin PocketBase image to v0.22.4 instead of latest
- Add healthcheck to docker-compose.yml
- Add environment variables documentation to README.md
- Add development and production environment sections

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
congsh
2026-04-17 14:15:39 +08:00
parent 4d1a53fc69
commit b79046ec63
2 changed files with 26 additions and 1 deletions
+19
View File
@@ -14,3 +14,22 @@ docker-compose up -d
访问: http://localhost:8090/_/
管理后台: http://localhost:8090/_/ (admin/admin)
## 环境变量
首次启动前,确保 .env 文件包含以下变量:
```env
PB_PORT=8090
PB_DATA=./pb_data
PB_MIGRATIONS=./pb_migrations
```
## 开发环境
访问管理后台: http://localhost:8090/_/
首次访问时需要创建管理员账号。
## 生产环境
建议固定 PocketBase 版本并配置反向代理 (nginx)。