File size: 773 Bytes
8df54df fd831ef 8df54df fd831ef 8df54df fd831ef 8df54df | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | version: '3.8'
services:
turnstile-solver:
build: .
container_name: turnstile-solver
ports:
- "7860:7860"
volumes:
# 挂载 proxies.txt 文件(如果需要使用代理)
- ./proxies.txt:/app/proxies.txt
# 挂载数据库文件以持久化结果
- ./data:/app/data
environment:
- PYTHONUNBUFFERED=1
command: >
python api_solver.py
--host 0.0.0.0
--port 7860
--thread 4
--browser_type chromium
restart: unless-stopped
# 如果需要使用代理,取消下面的注释
# command: >
# python api_solver.py
# --host 0.0.0.0
# --port 7860
# --thread 4
# --browser_type chromium
# --proxy
# --random |