0
0
opnxng-deploy-playbook/templates/compose/runner.yaml.j2
2023-11-06 10:39:27 +08:00

29 lines
908 B
Django/Jinja
Executable File

# {{ ansible_managed }}
version: "3"
services:
runner:
image: gitea/act_runner:latest
# image: gitea/act_runner:latest-dind-rootless
container_name: runner
restart: always
privileged: true
volumes:
- {{ docker_dir }}/runner:/data
- /var/run/docker.sock:/var/run/docker.sock
# security_opt:
# - no-new-privileges
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Singapore
# - DOCKER_HOST={{ docker_host }}
- GITEA_INSTANCE_URL=https://git.opnxng.com
- GITEA_RUNNER_REGISTRATION_TOKEN="{{ gitea_runner_registration_token }}"
- GITEA_RUNNER_NAME=runner
- GITEA_RUNNER_LABELS=ubuntu-latest:docker://node:16-bullseye,ubuntu-22.04:docker://node:16-bullseye,ubuntu-20.04:docker://node:16-bullseye,ubuntu-18.04:docker://node:16-buster,runner:host
networks:
- IPv4
networks:
IPv4:
external:
name: IPv4