- Rewrite quick-start for source clone & build (A: compose, B: docker run) - Expand frp section: full frps.toml, webui4frpc WebUI workflow, native frpc.toml, tunnel planning table - docker-compose: NAVI_PORT / SEARXNG_BASE_URL env passthrough, better docs - .env.example: document all vars incl token generation & base_url - Fix firefox debugging URL typo, extension token note
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
version: "3.8"
|
||
|
||
services:
|
||
navi:
|
||
build: .
|
||
container_name: jianf-navi
|
||
image: jianf-navi:latest
|
||
restart: unless-stopped
|
||
ports:
|
||
# 宿主机端口:容器内 nginx 端口(Dashy/搜索/管理 统一入口)
|
||
- "${NAVI_PORT:-3003}:8080"
|
||
volumes:
|
||
# 持久化:导航配置 conf.yml + 历史 history.json + 图标 item-icons/
|
||
- ./data:/app/data
|
||
environment:
|
||
# ---- 鉴权令牌(强烈建议设置)----
|
||
# 浏览器扩展同步历史用
|
||
- NAVI_SYNC_TOKEN=${NAVI_SYNC_TOKEN:-}
|
||
# 管理后台/API 写操作用
|
||
- NAVI_ADMIN_TOKEN=${NAVI_ADMIN_TOKEN:-}
|
||
|
||
# ---- 对外访问地址(公网域名,影响搜索结果页链接)----
|
||
# 例如 https://nav.example.com (不含 /search 子路径)
|
||
- SEARXNG_BASE_URL=${SEARXNG_BASE_URL:-http://localhost:3003}
|
||
healthcheck:
|
||
test: ["CMD", "curl", "-fs", "http://localhost:8080/healthz"]
|
||
interval: 30s
|
||
timeout: 5s
|
||
start_period: 30s
|
||
retries: 3
|
||
deploy:
|
||
resources:
|
||
limits:
|
||
memory: 512M
|
||
|
||
# ── 使用方式 ──
|
||
# 1. cp .env.example .env,编辑令牌与域名
|
||
# 2. docker compose up -d --build
|
||
# 3. 访问 http://<ip>:<NAVI_PORT>
|
||
#
|
||
# ── 国内网络注意 ──
|
||
# SearXNG 需访问 Google/Bing 等引擎。若服务器出不了外网,
|
||
# 编辑 searxng-settings.yml 的 outgoing.proxies 填你的代理:
|
||
# proxies:
|
||
# all://: http://<proxy-ip>:<port>
|
||
# 再 docker compose up -d --build 重新构建。
|