# PPF worker node (cassius, edge, sentinel, ...) # # Tests proxies and reports results to master via WireGuard. # Each worker uses only local Tor (127.0.0.1:9050). # # Prerequisites: # - config.ini (not tracked, host-specific) # - servers.txt (deploy from repo) # - src/ (deploy *.py from repo root into src/) # - data/ (created automatically) # # Usage: # PPF_MASTER_URL=http://10.200.1.250:8081 podman-compose -f compose.worker.yml up -d # podman-compose -f compose.worker.yml logs -f # podman-compose -f compose.worker.yml down # # The master URL defaults to http://10.200.1.250:8081 (odin via WireGuard). # Override with PPF_MASTER_URL env var or edit .env file. services: ppf-worker: container_name: ppf-worker image: localhost/ppf-worker:latest build: . network_mode: host restart: unless-stopped stop_signal: SIGTERM stop_grace_period: 30s logging: driver: k8s-file environment: PYTHONUNBUFFERED: "1" volumes: - ./src:/app:ro,Z - ./data:/app/data:Z - ./config.ini:/app/config.ini:ro,Z - ./servers.txt:/app/servers.txt:ro,Z command: python -u ppf.py --worker-v2 --server ${PPF_MASTER_URL:-http://10.200.1.250:8081}