windmill: Run worker outside of pinp

This commit is contained in:
uumas
2026-03-26 04:11:50 +02:00
parent 351ef2c5d4
commit 500bba84b4
2 changed files with 32 additions and 39 deletions

View File

@@ -17,26 +17,46 @@
DATABASE_URL_FILE: /run/secrets/postgres-url
MODE: server
service_additional_containers:
- name: worker
- name: worker-pinp
image: quay.io/podman/stable:latest
user: podman
entrypoint: /entrypoint.sh
command:
- podman
- system
- service
- --time
- "0"
mounts:
- type: volume
source: worker-pinp-containers
destination: /home/podman/.local/share/containers
- type: volume
source: worker-pinp-tmp
destination: /tmp/storage-run-1000
- type: volume
source: worker-pinp-run
destination: /tmp/storage-run-1000/podman
- name: worker
mounts:
- type: volume
source: worker-logs
destination: /worker-logs
destination: /tmp/windmill/logs
- type: volume
source: worker-dependency-cache
destination: /worker-dependency-cache
- type: template
source: worker_entrypoint.sh.j2
destination: /entrypoint.sh
mode: "0755"
destination: /tmp/windmill/cache
- type: volume
source: worker-containers
destination: /home/podman/.local/share/containers
publish_ports: []
env: {}
source: worker-pinp-run
destination: /run/podman
readonly: true
env:
DATABASE_URL_FILE: /run/secrets/postgres-url
DOCKER_HOST: unix:///run/podman/podman.sock
MODE: worker
WORKER_GROUP: default
ENABLE_UNSHARE_PID: "true"
UNSHARE_ISOLATION_FLAGS: "--user --map-root-user --pid --fork"
wants:
- windmill-worker-pinp.service
- name: worker-native
env:
DATABASE_URL_FILE: /run/secrets/postgres-url