services: dind: image: "docker:dind" container_name: "dind" hostname: "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.3.1" container_name: "runner" hostname: "runner" links: - dind depends_on: dind: condition: service_started environment: DOCKER_HOST: tcp://dind:2375 # User without root privileges, but with access to `./data`. user: 1001:1001 volumes: - ./runner/data:/data restart: unless-stopped command: "/bin/sh -c 'sleep 5; forgejo-runner daemon'" # command: "/bin/sh -c 'while : ; do sleep 1 ; done ;'"