# Generated by Ansible - do not hand-edit. Three Gitea Actions runners, always. # To change their shape (image, volumes, env), edit this template and re-run # playbooks/deploy.yml. # # GITEA_RUNNER_REGISTRATION_TOKEN is intentionally left as a compose variable # (not baked in here) - services/dev/spinup.sh generates a fresh token and # writes it to Runners/.env immediately before starting these containers. # # /data is a disposable local cache (runner identity re-registers on every # spinup.sh run anyway), so it's a plain named volume - not part of the S3 # backup/restore stack in services/dev/backup-docker-compose.yml. {% set runner_count = 3 %} services: {% for i in range(1, runner_count + 1) %} runner-{{ i }}: image: gitea/act_runner:latest container_name: gitea_runner_{{ i }} volumes: - ./config.yaml:/config.yaml - gitea_runner_{{ i }}_data:/data - /var/run/docker.sock:/var/run/docker.sock networks: - proxy environment: CONFIG_FILE: /config.yaml GITEA_INSTANCE_URL: "https://git.luke-else.co.uk" GITEA_RUNNER_REGISTRATION_TOKEN: "${GITEA_RUNNER_REGISTRATION_TOKEN}" GITEA_RUNNER_NAME: "CICD#{{ i }}" restart: unless-stopped {% endfor %} networks: proxy: external: true volumes: {% for i in range(1, runner_count + 1) %} gitea_runner_{{ i }}_data: name: gitea_runner_{{ i }}_data {% endfor %}