initial role commit

This commit is contained in:
hiperman
2025-11-28 20:50:50 -05:00
parent be507897df
commit fdd0c909bd
15 changed files with 1655 additions and 2 deletions

View File

@@ -0,0 +1,37 @@
---
services:
gitea:
image: docker.gitea.com/gitea:{{ gitea_container_tag }}
restart: always
env_file:
- .env
volumes:
- {{ gitea_data_mount }}:/var/lib/gitea
- {{ gitea_config_mount }}:/etc/gitea
- {{ gitea_log_mount }}:{{ gitea_log_root_path }}
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- 127.0.0.1:{{ gitea_web_port }}:3000
- 0.0.0.0:{{ gitea_ssh_port }}:2222
{% for runner in gitea_runners %}
{{ runner.name }}:
image: gitea/act_runner:latest-dind-rootless
restart: always
privileged: true
depends_on:
- gitea
volumes:
- {{ runner.config_file_mount }}:/config.yaml
- {{ runner.data_mount }}:/data
{% if runner.cache_enabled %}
ports:
- 127.0.0.1:{{ runner.cache_port }}:{{ runner.cache_port }}
{% endif %}
environment:
CONFIG_FILE: /config.yaml
GITEA_RUNNER_NAME: {{ runner.name }}
GITEA_INSTANCE_URL: {{ gitea_root_url }}
DOCKER_HOST: "unix:///var/run/user/1000/docker.sock"
GITEA_RUNNER_REGISTRATION_TOKEN: {{ gitea_runner_global_registration_token | default(runner.registration_token) | default('') }}
{% endfor %}