From 6686ba26402d1637ca6e5045a20327b49ef7723c Mon Sep 17 00:00:00 2001 From: Florian Zirker Date: Wed, 2 Oct 2024 13:44:08 +0000 Subject: [PATCH] install forgejo-runner to use actions --- git/docker-compose.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/git/docker-compose.yaml b/git/docker-compose.yaml index 939c3cf..45c34ea 100644 --- a/git/docker-compose.yaml +++ b/git/docker-compose.yaml @@ -62,8 +62,39 @@ services: - "diun.enable=true" + docker-in-docker: + image: docker:dind + privileged: 'true' + command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false'] + restart: 'unless-stopped' + networks: + - runner + + + runner: + image: code.forgejo.org/forgejo/runner:3.5.1 + links: + - docker-in-docker + depends_on: + docker-in-docker: + condition: service_started + environment: + DOCKER_HOST: tcp://docker-in-docker:2375 + user: 1002:1002 + volumes: + - /var/dockervolumes/git/runner:/data + restart: 'unless-stopped' + # command: '/bin/sh -c "while : ; do sleep 1 ; done ;"' # for registration + command: '/bin/sh -c "sleep 5; forgejo-runner daemon"' + networks: + - git + - runner + + networks: git: web: external: true + runner: +