kaiju.platform/docker-compose.yaml

29 lines
740 B
YAML
Raw Normal View History

2025-06-14 23:10:48 +03:00
services:
dind:
image: "docker:dind"
container_name: "dind"
hostname: "dind"
2025-06-15 04:48:39 +03:00
privileged: "true"
2025-06-14 23:10:48 +03:00
command: [ "dockerd", "-H", "tcp://0.0.0.0:2375", "--tls=false" ]
2025-06-15 04:48:39 +03:00
restart: "unless-stopped"
2025-06-14 23:10:48 +03:00
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
2025-06-14 23:49:32 +03:00
command: "/bin/sh -c 'sleep 5; forgejo-runner daemon'"
# command: "/bin/sh -c 'while : ; do sleep 1 ; done ;'"