Files
xhs_crawler_claude/docker-compose.yml
T

24 lines
668 B
YAML
Raw Normal View History

2026-01-12 12:04:05 +08:00
version: '3.8'
services:
xiaohongshu-scraper:
build: .
container_name: xiaohongshu-scraper
ports:
2026-01-12 15:49:09 +08:00
- "18085:18085" # 外部端口18085映射到容器内部18085
2026-01-12 12:04:05 +08:00
volumes:
# 持久化数据目录(采集结果、日志、登录状态)
- ./data:/app/data
environment:
- HOST=0.0.0.0
2026-01-12 15:49:09 +08:00
- PORT=18085
2026-01-12 12:04:05 +08:00
- HEADLESS=false
- SCREENSHOT_ON_ERROR=true
- MAX_THREADS=5
# Git 自动更新配置(可选)
# - ENABLE_GIT_PULL=true
# - GIT_REPO_URL=https://github.com/yourusername/xiaohongshu-scraper.git
# - GIT_BRANCH=main
# - AUTO_PULL_INTERVAL=3600
restart: unless-stopped