iac/docker/runner/docker-compose.yml
Renovate Bot 9882bc1690
Some checks are pending
Lint on PR / Lint YAML files (pull_request) Successful in 15s
Deploy to Hosts / deploy (pull_request) Waiting to run
⬆️ Update code.forgejo.org/forgejo/runner Docker tag to v5.0.2
2024-11-21 15:01:01 +00:00

26 lines
696 B
YAML

---
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'
gitea:
image: 'code.forgejo.org/forgejo/runner:5.0.2'
links:
- docker-in-docker
depends_on:
docker-in-docker:
condition: service_started
container_name: 'runner'
environment:
DOCKER_HOST: tcp://docker-in-docker:2375
# User without root privileges, but with access to `/data`.
user: 1000:1000
volumes:
- /home/mafyuh/data:/data
restart: 'unless-stopped'
command: '/bin/sh -c "sleep 5; forgejo-runner daemon"'