feat(service): add GitHub Action runner service (#6209)

This commit is contained in:
Eric Dahl
2025-07-18 15:54:39 -04:00
committed by GitHub
parent 9292d3c223
commit 451aadbd7f
2 changed files with 27 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -0,0 +1,27 @@
# documentation: https://github.com/myoung34/docker-github-actions-runner/wiki/Usage
# slogan: A GitHub Actions runner for Docker
# tags: github,actions,runner,docker
# logo: svgs/github-runner.png
services:
runner:
image: 'myoung34/github-runner:latest'
environment:
- REPO_URL=${REPO_URL}
- RUNNER_NAME_PREFIX=${RUNNER_NAME_PREFIX:-coolify-runner}
- RUNNER_NAME_SUFFIX=${RUNNER_NAME_SUFFIX:-true}
- ACCESS_TOKEN=${ACCESS_TOKEN}
- RUNNER_WORKDIR=/tmp/runner/work
- RUNNER_SCOPE=${RUNNER_SCOPE:-repo}
- LABELS=${LABELS:-default}
- ORG_NAME=${ORG_NAME}
security_opt:
- 'label:disable'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- runner:/tmp/runner
healthcheck:
test: ["CMD-SHELL", "ps aux | grep '[R]unner' > /dev/null || exit 1"]
interval: 5s
timeout: 10s
retries: 15