-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.runner.yml
More file actions
44 lines (34 loc) · 1.12 KB
/
docker-compose.runner.yml
File metadata and controls
44 lines (34 loc) · 1.12 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '3.8'
services:
github-runner:
image: ghcr.io/doong-jo/snapkit/ubuntu-actions-runner:latest
container_name: snapkit-github-runner
restart: unless-stopped
environment:
# GitHub 저장소 (형식: owner/repo)
GITHUB_REPOSITORY: ${GITHUB_REPOSITORY}
# GitHub Personal Access Token (repo 권한 필요)
GITHUB_TOKEN: ${GITHUB_TOKEN}
# Runner 이름 (선택사항, 기본값: runner-<hostname>)
RUNNER_NAME: ${RUNNER_NAME:-snapkit-linux-runner}
# Runner 레이블 (쉼표로 구분)
RUNNER_LABELS: ${RUNNER_LABELS:-self-hosted,linux,ARM64}
volumes:
# Docker-in-Docker 지원 (container action 실행에 필요)
- /var/run/docker.sock:/var/run/docker.sock
# Runner 작업 디렉터리 영구 저장 (선택사항)
- runner-work:/home/runner/_work
# 네트워크 설정
network_mode: bridge
# 리소스 제한 (선택사항)
# deploy:
# resources:
# limits:
# cpus: '2'
# memory: 4G
# reservations:
# cpus: '1'
# memory: 2G
volumes:
runner-work:
driver: local