Files

60 lines
1.9 KiB
YAML

services:
wechat-fulltext:
image: wechat-fulltext:2026-09-18
pull_policy: never
build:
context: .
dockerfile: Dockerfile
container_name: tools-wechat-fulltext
user: "1000:1000"
restart: unless-stopped
shm_size: 1gb
environment:
HOME: /data/home
PUBLIC_BASE_URL: http://192.168.50.49:8091
VERIFICATION_URL: http://192.168.50.49:8092/vnc.html?autoconnect=true&resize=scale
MANUAL_WAIT_SECONDS: "3600"
DEFAULT_PROVIDER: mptext
DIRECT_BROWSER_ENABLED: "false"
UPSTREAM_TIMEOUT_SECONDS: "20"
MPTEXT_MAX_ATTEMPTS: "2"
MPTEXT_RETRY_DELAYS_SECONDS: "5"
SECONDARY_UPSTREAM_ENDPOINT: http://wechat-download-upstream:5000/api/article
SECONDARY_UPSTREAM_PUBLIC_URL: http://192.168.50.49:8093/login.html
SECONDARY_UPSTREAM_TIMEOUT_SECONDS: "120"
ports:
- "192.168.50.49:8091:8091"
- "192.168.50.49:8092:6080"
volumes:
- /opt/wechat-fulltext/data/article-service:/data
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:8091/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
wechat-download-upstream:
image: tmwgsicp/wechat-download-api@sha256:6977f00af2334af4a8dc9ed19d0a82a5214fd4eca4d1c724f7d14b1299cc66ec
container_name: tools-wechat-download-upstream
restart: unless-stopped
environment:
TZ: America/Los_Angeles
SITE_URL: http://192.168.50.49:8093
RATE_LIMIT_GLOBAL: "20"
RATE_LIMIT_PER_IP: "20"
RATE_LIMIT_ARTICLE_INTERVAL: "1"
RSS_FETCH_FULL_CONTENT: "false"
ENABLE_MCP: "0"
ports:
- "192.168.50.49:8093:5000"
volumes:
- /opt/wechat-fulltext/data/download-api:/app/data
healthcheck:
test: ["CMD", "curl", "-sf", "http://127.0.0.1:5000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s