qa/self-hosted labels run jobs directly in the runner container (Alpine), which lacked a docker client despite the mounted host socket.
21 lines
542 B
YAML
21 lines
542 B
YAML
services:
|
|
runner:
|
|
build: .
|
|
container_name: gitea-runner
|
|
restart: unless-stopped
|
|
environment:
|
|
- CONFIG_FILE=/config.yaml
|
|
- GITEA_INSTANCE_URL=${INSTANCE_URL}
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=${REGISTRATION_TOKEN}
|
|
- GITEA_RUNNER_NAME=${RUNNER_NAME}
|
|
- GITEA_RUNNER_LABELS=${RUNNER_LABELS}
|
|
volumes:
|
|
- ./config.yaml:/config.yaml
|
|
- ./data:/data
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 2G
|
|
cpus: '2.0'
|