Remove forgejo runner setup
This commit is contained in:
parent
30d80247f2
commit
221f3c9850
1 changed files with 0 additions and 24 deletions
|
|
@ -43,27 +43,3 @@ services:
|
||||||
- forgejo
|
- forgejo
|
||||||
volumes:
|
volumes:
|
||||||
- {{ postgres_dir }}:/var/lib/postgresql/data
|
- {{ postgres_dir }}:/var/lib/postgresql/data
|
||||||
|
|
||||||
docker-in-docker:
|
|
||||||
image: docker:dind
|
|
||||||
privileged: true
|
|
||||||
container_name: 'docker_dind'
|
|
||||||
command: ['dockerd', '--host', 'tcp://0.0.0.0:2375', '--tls=false']
|
|
||||||
restart: 'unless-stopped'
|
|
||||||
|
|
||||||
# see https://forgejo.org/docs/latest/admin/runner-installation/#oci-image-installation
|
|
||||||
runner:
|
|
||||||
image: 'code.forgejo.org/forgejo/runner:3.4.1'
|
|
||||||
user: 1001:1001 # User without root privileges, but with access to {{ runner_dir }}
|
|
||||||
command: '/bin/sh -c "sleep 5; forgejo-runner daemon"'
|
|
||||||
environment:
|
|
||||||
DOCKER_HOST: tcp://docker-in-docker:2375
|
|
||||||
links:
|
|
||||||
- docker-in-docker
|
|
||||||
depends_on:
|
|
||||||
docker-in-docker:
|
|
||||||
condition: service_started
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- {{ runner_dir }}:/data
|
|
||||||
restart: 'unless-stopped'
|
|
||||||
|
|
|
||||||
Reference in a new issue