-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (28 loc) · 966 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (28 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
version: "3"
services:
worker:
image: ghcr.io/onmcu/dockerized-gha-runner:latest
restart: always
stop_grace_period: 30s
environment:
RUNNER_SCOPE: org
RUNNER_NAME_PREFIX: selfhosted-runner
ORG_NAME: {{ GITHUB_RUNNER_ORG }}
ACCESS_TOKEN: {{ GITHUB_RUNNER_TOKEN }}
RUNNER_WORKDIR: /tmp/github-runner
CONFIGURED_ACTIONS_RUNNER_FILES_DIR: /runner/data
LABELS: linux,x64,gpu,rust
DISABLE_AUTOMATIC_DEREGISTRATION: true
DISABLE_AUTO_UPDATE: true
RUN_AS_ROOT: false
EPHEMERAL: "true"
security_opt:
- label=disable
# For rootless podman:
# Create these folders and set `chmod o+w` for them and see which UID/GID creates the profiles:
# Then `chmod o-w` again and `chown` by that UID/GID
volumes:
- ./config:/config
- ./tmp:/tmp/github-runner
- ./cache-cargo-registry:/home/runner/.cargo/registry
- ./cache-cargo-git:/home/runner/.cargo/git