##############################################
# Gitea Actions Runner — Portainer Stack
#
# In Portainer deployen:
#   1. Stacks → Add Stack → "gitea-runner"
#   2. Diese YAML einfügen
#   3. Deploy
##############################################

services:
  runner:
    image: gitea/act_runner:latest
    restart: unless-stopped
    environment:
      GITEA_INSTANCE_URL: https://git.purepixel.ch
      GITEA_RUNNER_REGISTRATION_TOKEN: ${RUNNER_TOKEN}
      GITEA_RUNNER_NAME: lageplan-runner
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - runner_data:/data

volumes:
  runner_data:
