Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

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

Eric Dahl451aadbd7f7f
diff --git a/public/svgs/github-runner.png b/public/svgs/github-runner.png
new file mode 100644
index 0000000000..fb5b5c1b76
Binary files /dev/null and b/public/svgs/github-runner.png differ
diff --git a/templates/compose/github-runner.yml b/templates/compose/github-runner.yml
new file mode 100644
index 0000000000..1f175280b5
--- /dev/null
+++ b/templates/compose/github-runner.yml
@@ -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