install forgejo-runner to use actions

This commit is contained in:
Florian Zirker 2024-10-02 13:44:08 +00:00
parent c6bf4e3fa0
commit d3add91d87

View file

@ -60,8 +60,39 @@ services:
- "docker.group=git" - "docker.group=git"
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: networks:
git: git:
web: web:
external: true external: true
runner: