Files
michaelschiemer/deployment/gitea-runner/docker-compose.yml
Michael Schiemer 8b181a5ea2 Fix: docker-dind Zugriff auf traefik-public Netzwerk
- docker-dind erhält Zugriff auf traefik-public Netzwerk
- Job-Container können Registry über Container-Namen 'registry:5000' erreichen
- Workflow testet jetzt auch Container-Namen als Registry-URL
2025-10-31 17:52:28 +01:00

44 lines
1.2 KiB
YAML

services:
gitea-runner:
image: gitea/act_runner:latest
container_name: gitea-runner
restart: unless-stopped
volumes:
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
- ./config.yaml:/config.yaml:ro
environment:
- GITEA_INSTANCE_URL=${GITEA_INSTANCE_URL}
- GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_REGISTRATION_TOKEN}
- GITEA_RUNNER_NAME=${GITEA_RUNNER_NAME:-dev-runner}
- GITEA_RUNNER_LABELS=${GITEA_RUNNER_LABELS:-ubuntu-latest:docker://node:16-bullseye,ubuntu-22.04:docker://node:16-bullseye}
networks:
- gitea-runner
depends_on:
- docker-dind
# Docker-in-Docker for isolated job execution
docker-dind:
image: docker:dind
container_name: gitea-runner-dind
restart: unless-stopped
privileged: true
volumes:
- docker-data:/var/lib/docker
networks:
- gitea-runner
- traefik-public # Zugriff auf Registry und andere Services
command: ["dockerd", "--host=unix:///var/run/docker.sock", "--host=tcp://0.0.0.0:2375"]
networks:
gitea-runner:
name: gitea-runner
driver: bridge
traefik-public:
external: true
name: traefik-public
volumes:
docker-data:
name: gitea-runner-docker-data