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