{"id":18696165,"url":"https://github.com/defstudio/docker-github-runner","last_synced_at":"2025-11-08T14:30:33.686Z","repository":{"id":103425652,"uuid":"433807999","full_name":"defstudio/docker-github-runner","owner":"defstudio","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-01T22:25:40.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-28T03:29:09.416Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/defstudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["fabio-ivona","def-studio"]}},"created_at":"2021-12-01T11:57:01.000Z","updated_at":"2021-12-08T14:56:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"96c2c610-4ea5-4fbe-9863-b4c3648466af","html_url":"https://github.com/defstudio/docker-github-runner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defstudio%2Fdocker-github-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defstudio%2Fdocker-github-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defstudio%2Fdocker-github-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defstudio%2Fdocker-github-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defstudio","download_url":"https://codeload.github.com/defstudio/docker-github-runner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239558911,"owners_count":19658927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T11:17:23.823Z","updated_at":"2025-11-08T14:30:33.651Z","avatar_url":"https://github.com/defstudio.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/fabio-ivona","https://github.com/sponsors/def-studio"],"categories":[],"sub_categories":[],"readme":"![Docker Pulls](https://img.shields.io/docker/pulls/defstudio/github-runner)\n\n# Docker github runner\n\nA docker image optimized for running [shivammathur/setup-php](https://github.com/shivammathur/setup-php) actions in a docker self-hosted runner, but not limited to it. Custom docker images and services can be handled in the workflow as well\n\n### docker image\n\nhttps://hub.docker.com/r/defstudio/github-runner\n\n## Setup\n\n- create a new `docker-compose.yml` file\n\n```yml\nversion: '3.5'\n\nservices:\n  runner:\n    image: defstudio/github-runner:latest\n    restart: unless-stopped\n    environment:\n      ACCESS_TOKEN: \"${ACCESS_TOKEN}\"\n      RUNNER_NAME_PREFIX: \"${RUNNER_NAME_PREFIX}\"\n      ORG: \"${ORG_NAME}\"\n      LABELS: \"${LABELS}\"\n    security_opt:\n      - label:disable\n    volumes:\n      - '/var/run/docker.sock:/var/run/docker.sock'\n```\n\n- add an `.env` file to store settings\n\n```dotenv\nACCESS_TOKEN=\u003cTOKEN\u003e\nRUNNER_NAME_PREFIX=runner\nORG_NAME=def-studio\nLABELS=linux,self-hosted\n```\n\n## Starting new runners\n\n#### Single runner\n\n```shell\ndocker-compose up -d\n```\n\n#### Multiple runners\n\n```shell\ndocker-compose up -d --scale runner=5\n```\n\n## Credits\n\n- [Fabio Ivona](https://github.com/def-studio)\n- [myoung34/docker-github-actions-runner](https://github.com/myoung34/docker-github-actions-runner)\n- [https://github.com/shivammathur/setup-php](https://github.com/shivammathur/setup-php)\n- [All Contributors](../../contributors)\n\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefstudio%2Fdocker-github-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefstudio%2Fdocker-github-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefstudio%2Fdocker-github-runner/lists"}