27 lines
No EOL
735 B
YAML
27 lines
No EOL
735 B
YAML
version: '3.8'
|
|
|
|
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'
|
|
|
|
gitea:
|
|
image: 'code.forgejo.org/forgejo/runner:3.4.1'
|
|
links:
|
|
- docker-in-docker
|
|
depends_on:
|
|
docker-in-docker:
|
|
condition: service_started
|
|
container_name: 'runner'
|
|
environment:
|
|
DOCKER_HOST: tcp://docker-in-docker:2375
|
|
# User without root privileges, but with access to `./data`.
|
|
user: forgejo-runner:forgejo-runner
|
|
volumes:
|
|
- /home/forgejo-runner/data:/data
|
|
restart: 'unless-stopped'
|
|
|
|
command: '/bin/sh -c "while : ; do sleep 1 ; done ;"' |