DockerComposeCollection

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

docker-compose.yml (976B)


      1 version: '2.3'
      2 services:
      3   worker:
      4     restart: unless-stopped
      5     image: myoung34/github-runner:latest
      6     environment:
      7       REPO_URL: https://github.com/example/repo
      8       RUNNER_NAME: example-name
      9       RUNNER_TOKEN: someGithubTokenHere
     10       RUNNER_WORKDIR: /tmp/runner/work
     11       CONFIGURED_ACTIONS_RUNNER_FILES_DIR: /runner/data # Required for persistence
     12       RUNNER_GROUP: my-group # github enterprise only
     13       RUNNER_SCOPE: 'repo'
     14       LABELS: linux,x64,gpu
     15     security_opt:
     16       # needed on SELinux systems to allow docker container to manage other docker containers
     17       - label:disable
     18     volumes:
     19       - '/var/run/docker.sock:/var/run/docker.sock'
     20       - '/runner/data:/runner/data' # required for persistence
     21       - '/tmp/runner:/tmp/runner'
     22       # note: a quirk of docker-in-docker is that this path
     23       # needs to be the same path on host and inside the container,
     24       # docker mgmt cmds run outside of docker but expect the paths from within