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: code.forgejo.org/forgejo/runner:3.5.0 container_name: runner volumes: # Config - $APPDATA/runner/data:/data # Other - /var/run/docker.sock:/var/run/docker.sock environment: DOCKER_HOST: tcp://docker-in-docker:2375 # CONFIG_FILE: /config.yaml # GITEA_INSTANCE_URL: 'https://git.${DOMAIN}' # GITEA_RUNNER_REGISTRATION_TOKEN: $GITEA_RUNNER_TOKEN # GITEA_RUNNER_UID: $GITEA_RUNNER_UID # GITEA_RUNNER_GID: $GITEA_RUNNER_GID # GITEA_RUNNER_NAME: gitea-runner-1 # GITEA_RUNNER_LABELS: "ubuntu-latest,ubuntu-22.04,ubuntu-20.04,ubuntu-18.04" ports: - 42263:42263 links: - docker-in-docker depends_on: docker-in-docker: condition: service_started user: 1001:1001 # command: forgejo-runner daemon command: '/bin/sh -c "while : ; do sleep 1 ; done ;"' restart: unless-stopped