42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
services:
|
|
build-runner:
|
|
image: docker.io/gitea/runner@sha256:05e100d9c2268fb300f929cab014e9930591a2d66822454e175c1099d1464b14
|
|
platform: linux/amd64
|
|
pull_policy: never
|
|
restart: unless-stopped
|
|
read_only: true
|
|
cpus: 0.5
|
|
mem_limit: 512m
|
|
pids_limit: 128
|
|
cap_drop: [ALL]
|
|
security_opt: [no-new-privileges:true]
|
|
tmpfs:
|
|
- /tmp:rw,nosuid,nodev,size=134217728
|
|
environment:
|
|
HOME: /data
|
|
XDG_CACHE_HOME: /data/.cache
|
|
CONFIG_FILE: /config/runner.yaml
|
|
GITEA_INSTANCE_URL: https://git.dcserve.ru
|
|
GITEA_RUNNER_NAME: synology-device-core-build
|
|
GITEA_RUNNER_REGISTRATION_TOKEN_FILE: /run/secrets/registration-token
|
|
volumes:
|
|
- type: bind
|
|
source: /volume1/docker/nodedc-gitea-ci/runner.yaml
|
|
target: /config/runner.yaml
|
|
read_only: true
|
|
bind: {create_host_path: false}
|
|
- type: bind
|
|
source: /volume1/docker/nodedc-gitea-ci/data
|
|
target: /data
|
|
bind: {create_host_path: false}
|
|
- type: bind
|
|
source: /volume1/docker/nodedc-gitea-ci/secrets/registration-token
|
|
target: /run/secrets/registration-token
|
|
read_only: true
|
|
bind: {create_host_path: false}
|
|
- type: bind
|
|
source: /var/run/docker.sock
|
|
target: /var/run/docker.sock
|
|
read_only: true
|
|
bind: {create_host_path: false}
|