Remove act_runner config file/mount — unreliable under Portainer git-stack deploy, and unnecessary

The bind-mounted relative path resolved to nothing once Portainer's cloned
checkout no longer persisted for the container's runtime, so Docker silently
created an empty directory there and act_runner crash-looped. act_runner
already auto-detects its own docker.sock without any custom config.
This commit is contained in:
2026-08-23 11:21:27 +00:00
parent 11d2ae8cbb
commit 31d0923fdf
2 changed files with 5 additions and 6 deletions
-4
View File
@@ -1,4 +0,0 @@
# act_runner auto-detects that it has its own /var/run/docker.sock mounted (see
# docker-compose.yml) and passes it through to job containers itself — no explicit
# options needed here. This file is kept (even near-empty) so CONFIG_FILE has a
# stable target if runner-level settings are needed later.
+5 -2
View File
@@ -73,11 +73,14 @@ services:
# catthehacker/ubuntu:act-latest is the standard job-container image for # catthehacker/ubuntu:act-latest is the standard job-container image for
# act/act_runner — includes git + docker CLI, which job steps need. # act/act_runner — includes git + docker CLI, which job steps need.
GITEA_RUNNER_LABELS: docker:docker://catthehacker/ubuntu:act-latest GITEA_RUNNER_LABELS: docker:docker://catthehacker/ubuntu:act-latest
CONFIG_FILE: /etc/act_runner/config.yaml # No custom config.yaml: act_runner already auto-detects its own bind-mounted
# docker.sock and passes it through to job containers with no extra config needed.
# (A relative-path bind-mounted config file here would also be unreliable under
# Portainer's git-stack deploy — its cloned checkout doesn't persist for the
# container's runtime, so the mount source can silently resolve to nothing.)
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- act_runner_data:/data - act_runner_data:/data
- ./act-runner-config.yaml:/etc/act_runner/config.yaml:ro
networks: networks:
- web - web