mirror of
https://code.agostinelli.eu/michele/forgejo-runner-docker.git
synced 2026-01-06 18:32:39 +01:00
Docker compose file to run and auto regsiter forgejo runner.
1. Clone the repository
2. Request a registration token in forgejo
3. Copy env_example in .env and edit it with your params
4. Run: docker compose up -d
| .forgejo/workflows | ||
| .gitignore | ||
| docker-compose.yml | ||
| env_example | ||
| LICENSE | ||
| README.md | ||
forgejo-runner-docker
Docker compose file to run and auto register forgejo runner.
- Setup environment
mkdir -p /opt/forgejo-runner/data chmod 755 /opt/forgejo-runner/data chown 1000:1000 /opt/forgejo-runner/data/ cd /opt/forgejo-runner/ git clone https://this.repo - Request a registration token in forgejo
- Forgejo > Repository > Settings > Actions > Runners > "Generate new token"
- Copy env_example in .env and edit it with your params
- get the group id in your system
getent group docker | cut -d: -f3
- Run and check logs:
docker compose up -d docker compose logs -f