configs/forgejo/runner/docker-compose.yaml
sneakers-the-rat 3738d84250
All checks were successful
/ test (push) Successful in 1s
/ test2 (push) Successful in 1s
pages volume
2024-06-29 01:52:31 -07:00

38 lines
No EOL
964 B
YAML

version: '3.8'
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'
volumes:
- /home/forgejo-runner/artifacts:/artifacts
- /var/www/pages:/pages
gitea:
image: 'code.forgejo.org/forgejo/runner:3.4.1'
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/forgejo-runner/data:/data
- /home/forgejo-runner/artifacts:/artifacts
- /var/www/pages:/pages
restart: 'unless-stopped'
expose:
- "8080"
command: '/bin/sh -c "sleep 5; forgejo-runner daemon --config config.yml"'