# Gitea act_runner — 可选参考部署（标签 default，与工作流一致）
#
# 若已在 Gitea 注册个人/仓库 runner 且标签为 default，无需使用本目录。

services:
  act-runner:
    image: docker.io/gitea/act_runner:0.2.12
    container_name: prism-act-runner
    restart: unless-stopped
    environment:
      CONFIG_FILE: /config.yaml
      GITEA_INSTANCE_URL: ${GITEA_INSTANCE_URL:-https://git.rc707blog.top}
      GITEA_RUNNER_REGISTRATION_TOKEN: ${GITEA_RUNNER_REGISTRATION_TOKEN}
      GITEA_RUNNER_NAME: ${GITEA_RUNNER_NAME:-prism-ci-runner}
    volumes:
      - ./config.yaml:/config.yaml:ro
      - act-runner-data:/data
      - /var/run/docker.sock:/var/run/docker.sock
    working_dir: /data

volumes:
  act-runner-data:
