Files
HomeDash/docker-compose.yml
JianFeeeee 73396cd5d4 docs: document NAVI_FAVICON_PROXY and pass it through compose
新增的 favicon 抓取代理变量此前只存在于代码里:
- .env.example 补充说明与示例(默认留空,自动复用 SearXNG 的 outgoing.proxies)
- docker-compose.yml 透传该变量
- README 环境变量表补一行
2026-09-11 11:00:40 +08:00

51 lines
1.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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}
# ---- 历史条目图标抓取(可选)----
# 留空则自动复用 searxng-settings.yml 里 outgoing.proxies 的代理
- NAVI_FAVICON_PROXY=${NAVI_FAVICON_PROXY:-}
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 重新构建。