Replace raw podman run with declarative compose.yml per host type. Master (odin) gets compose.master.yml, workers get compose.worker.yml.
19 lines
470 B
YAML
19 lines
470 B
YAML
version: "3"
|
|
services:
|
|
ppf-worker:
|
|
container_name: ppf-worker
|
|
image: localhost/ppf-worker:latest
|
|
build: .
|
|
network_mode: host
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: k8s-file
|
|
environment:
|
|
PYTHONUNBUFFERED: "1"
|
|
volumes:
|
|
- ./src:/app:ro
|
|
- ./data:/app/data
|
|
- ./config.ini:/app/config.ini:ro
|
|
- ./servers.txt:/app/servers.txt:ro
|
|
command: python -u ppf.py --worker-v2 --server http://10.200.1.250:8081
|