# Single Gitea Actions runner on the desktop host (docker compose). # Copy this file and config.yaml to the runtime folder named in README.md # and run `docker compose up -d` there. Do not run it from a Git checkout. name: gitea-runner services: runner: # Official Gitea Runner 5.4.1, dind flavour, pinned by index digest. image: docker.io/gitea/runner:5.4.1-dind@sha256:8bcb489f9dd6be500de22bcaa8512ef57b81ae50315db8c7a1dc1b74978a76f4 container_name: gitea-runner hostname: desktop-runner # Starts again after a crash, a Docker restart and a host reboot. restart: always # Required by the bundled Docker daemon that runs the jobs. Jobs never # see the host Docker socket. See README.md for what this still allows. privileged: true environment: GITEA_INSTANCE_URL: https://git.learn.hyeonworks.com GITEA_RUNNER_NAME: desktop-runner # Read only while /data/.runner does not exist yet. GITEA_RUNNER_REGISTRATION_TOKEN_FILE: /run/gitea-runner/registration-token CONFIG_FILE: /config.yaml volumes: - ./config.yaml:/config.yaml:ro - ./secrets:/run/gitea-runner:ro - data:/data - docker:/var/lib/docker # Every job container runs inside this container's cgroup, so these # limits cap all CI work on the shared desktop. cpus: 6 mem_limit: 10g logging: driver: json-file options: max-size: 10m max-file: "3" volumes: data: docker: