docs: improve documentation experience

This commit is contained in:
Lan committed 2026-07-12 00:08:34 +08:00
1 parent fe1a7727f7
commit f20a7a5704
34 files changed
+548 -32919

No files matched your search

+11 -7
View File
@@ -20,7 +20,11 @@ FileCodeBox 是一个简单高效的文件分享工具,支持文件临时中
#### 快速启动
```bash
docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:latest
docker run -d --restart unless-stopped \
-p 12345:12345 \
-v fcb-data:/app/data \
--name filecodebox \
lanol/filecodebox:latest
```
#### Docker Compose
@@ -36,7 +40,7 @@ services:
ports:
- "12345:12345"
environment:
- WORKERS=4
- WORKERS=1
- LOG_LEVEL=info
volumes:
fcb-data:
@@ -47,9 +51,9 @@ volumes:
| 变量 | 默认值 | 说明 |
|------|--------|------|
| `HOST` | `::` | 监听地址,支持 IPv4/IPv6 双栈 |
| `HOST` | `0.0.0.0` | 服务监听地址 |
| `PORT` | `12345` | 服务端口 |
| `WORKERS` | `4` | 工作进程数,建议设置为 CPU 核心数 |
| `WORKERS` | `1` | 工作进程数;SQLite 部署建议保持单进程 |
| `LOG_LEVEL` | `info` | 日志级别:debug/info/warning/error |
#### 自定义配置示例
@@ -57,8 +61,8 @@ volumes:
```bash
docker run -d --restart=always \
-p 12345:12345 \
-v /opt/FileCodeBox/:/app/data \
-e WORKERS=8 \
-v fcb-data:/app/data \
-e WORKERS=1 \
-e LOG_LEVEL=warning \
--name filecodebox \
lanol/filecodebox:latest
@@ -113,7 +117,7 @@ python main.py
- 访问 `http://localhost:12345/#/admin`
- 输入初始化时设置的管理员密码
- 进入后台管理页面
- 查看系统信息、文件列表、用户管理等
- 查看系统信息、文件列表、活动记录和系统配置
## 下一步