Drop deprecated version key, add SELinux volume labels, SIGTERM handling with 30s grace period, configurable master URL via PPF_MASTER_URL env var, and usage documentation in headers.
31 lines
772 B
YAML
31 lines
772 B
YAML
# PPF master node (odin)
|
|
#
|
|
# Scrapes proxy sources, runs verification, serves API/dashboard.
|
|
# No routine proxy testing -- workers handle that.
|
|
#
|
|
# Prerequisites:
|
|
# - config.ini (not tracked, host-specific)
|
|
# - data/ (created automatically)
|
|
#
|
|
# Usage:
|
|
# podman-compose -f compose.master.yml up -d
|
|
# podman-compose -f compose.master.yml logs -f
|
|
# podman-compose -f compose.master.yml down
|
|
|
|
services:
|
|
ppf:
|
|
container_name: ppf
|
|
image: localhost/ppf:latest
|
|
build: .
|
|
network_mode: host
|
|
restart: unless-stopped
|
|
stop_signal: SIGTERM
|
|
stop_grace_period: 30s
|
|
environment:
|
|
PYTHONUNBUFFERED: "1"
|
|
volumes:
|
|
- .:/app:ro,Z
|
|
- ./data:/app/data:Z
|
|
- ./config.ini:/app/config.ini:ro,Z
|
|
command: python -u ppf.py
|