# Docker Compose para act_runner de Gitea Actions
#
# USO:
# 1. Obtener token de registro en Gitea > Settings > Actions > Runners
# 2. Actualizar GITEA_RUNNER_REGISTRATION_TOKEN abajo
# 3. Iniciar: docker compose -f docker-compose.runner.yml up -d runner
# 4. Ver logs: docker compose -f docker-compose.runner.yml logs -f runner

services:
  runner:
    image: gitea/act_runner:latest
    container_name: gitea-runner-pollo
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./runner-data:/data
    environment:
      - GITEA_INSTANCE_URL=http://gitea:3000
      - GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_TOKEN}
      - GITEA_RUNNER_NAME=pollo-runner
      - GITEA_RUNNER_LABELS=ubuntu-latest:docker://ubuntu:24.04,linux:docker://ubuntu:24.04
      - CONFIG_FILE=/data/config.yaml
    networks:
      - web

networks:
  web:
    external: true
