Like Kubernetes controller for GitHub Actions self-hosted runners but for Docker Compose.
mkdir actions-runner-compose && cd actions-runner-composenano .envwith content from .env.examplenano compose.yamlwith content below (you can find versions in GitHub Packages)
name: actions-runner-compose
services:
actions-runner-compose:
container_name: arc
image: ghcr.io/killwolfvlad/actions-runner-compose:latest
restart: unless-stopped
environment:
PORT: "8080"
WEBHOOK_PATH: ${WEBHOOK_PATH}
WEBHOOK_SECRET: ${WEBHOOK_SECRET}
MAX_RUNNERS: ${MAX_RUNNERS}
RUNNER_IMAGE: ${RUNNER_IMAGE}
REPOSITORY_0: ${REPOSITORY_0}
REPOSITORY_1: ${REPOSITORY_1}
ports:
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sockdocker compose up -d- Setup Caddy or any other reverse proxy
yourdomain.com {
reverse_proxy http://localhost:8080
}- Payload URL:
https://yourdomain.com/${WEBHOOK_PATH} - Content type:
application/json - Secret:
${WEBHOOK_SECRET} - SSL verification:
Enable SSL verification - Which events would you like to trigger this webhook:
Let me select individual events.Workflow jobs
- Active:
true
This repository is released under version 2.0 of the Apache License.
