Files
compose-anything/src/gitlab-runner/docker-compose.yaml
2025-11-05 20:26:14 +08:00

26 lines
569 B
YAML

x-defaults: &defaults
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
services:
gitlab-runner:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}gitlab/gitlab-runner:${GITLAB_RUNNER_VERSION:-alpine3.21-v18.4.0}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./config:/etc/gitlab-runner
environment:
- TZ=${TZ:-UTC}
deploy:
resources:
limits:
cpus: '1.0'
memory: 2G
reservations:
cpus: '0.5'
memory: 1G