sha256:a60cec3e0c1f5cbdfca858f0062aff0064ee678be85193abd5794428f09dd22d
Last pushed
8 months by tamfrost
Type
Compose
Manifest digest
sha256:a60cec3e0c1f5cbdfca858f0062aff0064ee678be85193abd5794428f09dd22d
services:
gh-runner:
image: tamfrost/gh-runner:latest
build:
dockerfile: Dockerfile
container_name: gh-runner-service
ports:
- "3000:3000"
environment:
- RUNNER_TAG=${RUNNER_TAG:-ghr}
- GITHUB_INSTANCE=${GITHUB_INSTANCE:-github.com}
- GITHUB_TF_OAUTH2_CLIENT_ID=${GITHUB_TF_OAUTH2_CLIENT_ID}
- GITHUB_TF_OAUTH2_CLIENT_SECRET=${GITHUB_TF_OAUTH2_CLIENT_SECRET}
- BASE_URL=${BASE_URL}
- SESSION_SECRET=${SESSION_SECRET}
# Set USE_DOCKER_IN_DOCKER=true to run Docker daemon inside container
# Otherwise, mount the host Docker socket (default)
- USE_DOCKER_IN_DOCKER=${USE_DOCKER_IN_DOCKER:-false}
privileged: true
volumes:
# Comment out this line if using USE_DOCKER_IN_DOCKER=true
# - /var/run/docker.sock:/var/run/docker.sock
- ./certs:/certs
# Uncomment below for persistent Docker data with DinD
# - docker-data:/var/lib/docker
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
# Uncomment below for persistent Docker data with DinD
volumes:
docker-data:
docker compose -f oci://tamfrost/gh-runner:compose upUse the above command to pull and run the Compose file. Learn more.