Files
guides-and-docs/docker-compose/gitea-runner/docker-compose.yml

24 lines
990 B
YAML

# In your docker-compose.yml
version: '3.7'
services:
gitea-runner:
image: gitea/act_runner:latest # Check for the latest official image tag
container_name: gitea-runner
environment:
# Get these from Gitea Admin/Repo Settings -> Actions -> Runners
GITEA_INSTANCE_URL: https://git.yorgei.dev # URL to your Gitea instance
GITEA_RUNNER_REGISTRATION_TOKEN: owo.whats.this
GITEA_RUNNER_NAME: my-docker-runner # Optional name
GITEA_RUNNER_LABELS: docker:docker://host.docker.internal/var/run/docker.sock,ubuntu-latest:docker://node:18-bullseye
volumes:
# Mount Docker socket from host - allows runner to use host Docker
- /var/run/docker.sock:/var/run/docker.sock
# Persist runner config
- /3tbhdd/gitea-runner/gitea-runner-data:/data
restart: always
networks:
- npm-crowdsec_crowdsec_proxy # Ensure it can reach Gitea and the Registry
networks:
npm-crowdsec_crowdsec_proxy: # Define if not already defined