Add Docker Compose quickstart
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user