docker-compose-configs/forgejo-runner/docker-compose.yml

29 lines
802 B
YAML

services:
docker-in-docker:
image: docker:dind
container_name: 'forgejo-dind'
privileged: 'true'
command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false']
restart: 'unless-stopped'
forgejo-runner:
image: 'code.forgejo.org/forgejo/runner:3.5.1'
container_name: 'forgejo-runner'
links:
- docker-in-docker
depends_on:
docker-in-docker:
condition: service_started
# user: 1001:1001
environment:
DOCKER_HOST: tcp://docker-in-docker:2375
volumes:
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: 'unless-stopped'
privileged: 'true'
command: '/bin/sh -c "sleep 5; forgejo-runner daemon"'
# command: '/bin/sh -c "while : ; do sleep 1 ; done ;"'
volumes:
forgejo-runner-data: