1
0
Fork 0
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
Find a file
2025-12-29 09:33:18 +01:00
.forgejo/workflows first push 2025-12-29 09:28:01 +01:00
.gitignore first push 2025-12-29 09:28:01 +01:00
docker-compose.yml first push 2025-12-29 09:28:01 +01:00
env_example first push 2025-12-29 09:28:01 +01:00
LICENSE Initial commit 2025-12-29 09:19:32 +01:00
README.md docker group id 2025-12-29 09:33:18 +01:00

forgejo-runner-docker

Docker compose file to run and auto register forgejo runner.

  1. 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
    
  2. Request a registration token in forgejo
  • Forgejo > Repository > Settings > Actions > Runners > "Generate new token"
  1. Copy env_example in .env and edit it with your params
  • get the group id in your system
    getent group docker | cut -d: -f3
    
  1. Run and check logs:
    docker compose up -d
    docker compose logs -f