runner-config/docker-compose.yml
eternal-flame-AD 22a185a6ed
init docker in docker
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-08 07:47:15 -06:00

27 lines
No EOL
565 B
YAML

name: yume-forgejo-runner
services:
dind:
image: docker:27.3-dind-rootless
environment:
- DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS="-p 0.0.0.0:2376:2376/tcp"
privileged: true
networks:
- dind-network
runner:
image: code.forgejo.org/forgejo/runner:4.0.1
links:
- dind
networks:
- dind-network
- external-network
volumes:
- ./config.yaml:/config.yaml
- ./workspace:/workspace
- /var/run/docker.sock:/var/run/docker.sock
networks:
dind-network:
internal: true
external-network: