docs: add persistent gitea actions runner compose

This commit is contained in:
ik
2026-09-22 18:46:54 +07:00
parent 89dcf5f48e
commit 4a6c0aa906
2 changed files with 123 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
services:
gitea:
image: gitea/gitea:latest
container_name: gitea
restart: unless-stopped
environment:
PUID: "1000"
PGID: "1000"
TZ: ${TZ:-Asia/Krasnoyarsk}
ports:
- "3232:22"
volumes:
- ${GITEA_DATA_DIRECTORY:-/srv/gitea}:/data
networks:
- kycb_internal
runner:
image: docker.io/gitea/act_runner:latest
container_name: gitea-runner
restart: unless-stopped
depends_on:
- gitea
environment:
GITEA_INSTANCE_URL: ${GITEA_INSTANCE_URL:-http://gitea:3000/}
GITEA_RUNNER_REGISTRATION_TOKEN: ${GITEA_RUNNER_REGISTRATION_TOKEN:?Set GITEA_RUNNER_REGISTRATION_TOKEN in .env}
GITEA_RUNNER_NAME: ${GITEA_RUNNER_NAME:-rf4-runner-01}
GITEA_RUNNER_LABELS: ${GITEA_RUNNER_LABELS:-ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest}
volumes:
- ${GITEA_RUNNER_DATA_DIRECTORY:-/srv/gitea-runner}:/data
- /var/run/docker.sock:/var/run/docker.sock
networks:
- kycb_internal
networks:
kycb_internal:
external: true