Add Docker Compose quickstart

This commit is contained in:
2026-06-15 14:34:17 +08:00
parent d884fdda0a
commit d4ef996f49
6 changed files with 292 additions and 36 deletions
+9 -5
View File
@@ -79,13 +79,17 @@ go test -v ./tests/e2e/...
### Docker 部署
```bash
# 构建镜像
docker build -t gochat/gochat:latest .
# 本地/UAT 快速启动:GoChat + PostgreSQL/pgvector + Redis + Meilisearch + Mailhog
cd deploy/quickstart
cp .env.example .env
docker compose up -d --build
# 使用 docker-compose
docker compose up -d
# 可选:初始化演示账号和业务数据
docker compose --profile seed run --rm seed
```
详见 [deploy/quickstart/README.md](deploy/quickstart/README.md)。
## 环境配置
GoChat 使用 **Viper 多环境叠加**机制:
@@ -188,4 +192,4 @@ GitHub Actions 5阶段流水线:
## License
MIT
MIT