JobData/docker-compose.spider.yml
2026-03-24 01:49:31 +08:00

41 lines
918 B
YAML

version: "3.8"
x-spider-common: &spider-common
build:
context: .
dockerfile: spider.Dockerfile
restart: unless-stopped
environment: &spider-env
API_BASE_URL: ${API_BASE_URL:-http://124.222.106.226:9999}
API_TOKEN: ${API_TOKEN:-dev}
SLEEP_MIN_SECONDS: ${SLEEP_MIN_SECONDS:-5}
SLEEP_MAX_SECONDS: ${SLEEP_MAX_SECONDS:-12}
MAX_PAGES: "100"
INLINE_COMPANY: "0"
# 代理已内置,设 PROXY_TUNNEL=none 可禁用
services:
# ── Boss直聘 ──
spider-boss:
<<: *spider-common
environment:
<<: *spider-env
PLATFORM: boss
INSTANCES: "3"
# ── 前程无忧 ──
spider-qcwy:
<<: *spider-common
environment:
<<: *spider-env
PLATFORM: qcwy
INSTANCES: "3"
# ── 智联招聘 ──
spider-zhilian:
<<: *spider-common
environment:
<<: *spider-env
PLATFORM: zhilian
INSTANCES: "3"