Add Forgejo runner
This commit is contained in:
24
archived/forgejo-runner/compose.yaml
Normal file
24
archived/forgejo-runner/compose.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
services:
|
||||||
|
docker-in-docker:
|
||||||
|
image: docker:dind
|
||||||
|
container_name: docker_dind
|
||||||
|
privileged: true
|
||||||
|
command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false']
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
runner:
|
||||||
|
image: data.forgejo.org/forgejo/runner:6
|
||||||
|
container_name: runner
|
||||||
|
links:
|
||||||
|
- docker-in-docker
|
||||||
|
depends_on:
|
||||||
|
docker-in-docker:
|
||||||
|
condition: service_started
|
||||||
|
user: 1001:1001
|
||||||
|
command: '/bin/sh -c "while : ; do sleep 1 ; done ;"'
|
||||||
|
environment:
|
||||||
|
- DOCKER_HOST=tcp://docker-in-docker:2375
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
restart: unless-stopped
|
Reference in New Issue
Block a user