# Managed by Ansible — do not edit manually
services:
{% for i in range(1, act_runner_count + 1) %}
  runner-{{ i }}:
    image: gitea/act_runner:{{ act_runner_version }}
    container_name: act-runner-{{ i }}
    restart: unless-stopped
    environment:
      - GITEA_INSTANCE_URL=https://{{ domain_gitea }}
      - GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea_runner_registration_token }}
      - GITEA_RUNNER_NAME=runner-{{ i }}
      - CONFIG_FILE=/config.yml
    volumes:
      - {{ act_runner_data_dir }}/runner-{{ i }}:/data
      - {{ act_runner_data_dir }}/config.yml:/config.yml:ro
      - /var/run/docker.sock:/var/run/docker.sock
{% endfor %}
