文档更新

This commit is contained in:
ryan
2026-06-19 14:43:22 +08:00
parent 9eeeb09d2f
commit cc5e53c51e
48 changed files with 226 additions and 4612 deletions
+5 -34
View File
@@ -52,45 +52,16 @@ OpenFlare 是开源 CDN 编排与边缘安全平台。它支持反向代理、
### 1. 启动 Server
```yaml
services:
postgres:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_DB: openflare
POSTGRES_USER: openflare
POSTGRES_PASSWORD: replace-with-strong-password
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U openflare -d openflare"]
interval: 10s
timeout: 5s
retries: 5
openflare:
image: ghcr.io/rain-kl/openflare:latest
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
ports:
- "3000:3000"
environment:
SESSION_SECRET: replace-with-random-string
DSN: postgres://openflare:replace-with-strong-password@postgres:5432/openflare?sslmode=disable
GIN_MODE: release
LOG_LEVEL: info
volumes:
postgres-data:
```
仓库根目录提供完整 `docker-compose.yaml`(PostgreSQL、Redis、ClickHouse、Jaeger):
```bash
cp .env.example .env
# 编辑 .env,至少修改 APP_SESSION_SECRET
docker compose up -d
```
详细部署说明见 [部署文档](https://open-flare.pages.dev/deployment/deployment)。
访问地址:`http://localhost:3000`
默认账号: