- SQLite 纯 Go 驱动(modernc.org/sqlite),支持 CGO_ENABLED=0 跨平台编译
- 优化并发性能(WAL 模式),解决 "database is locked" 错误 - Docker 跨平台支持 `host.docker.internal` 访问宿主机服务 - 精简文档和部署指南
This commit is contained in:
@@ -16,6 +16,11 @@ services:
|
||||
# 例如:- ./data:/app/data (需要 chmod 777 ./data)
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
# 访问宿主机服务说明:
|
||||
# 使用 host.docker.internal 代替 127.0.0.1
|
||||
# 例如:http://host.docker.internal:11434 (Ollama)
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway" # 统一支持所有平台
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5678/health"]
|
||||
|
||||
Reference in New Issue
Block a user