-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.git.yml
More file actions
156 lines (135 loc) · 4.74 KB
/
docker-compose.git.yml
File metadata and controls
156 lines (135 loc) · 4.74 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
name: 'git'
version: '3.8'
services:
cmnw-github-runner-I:
image: myoung34/github-runner:latest
container_name: cmnw-github-runner-I
environment:
# Required: Your GitHub repository or organization
REPO_URL: https://github.com/alexzedim/cmnw
# Required: GitHub Personal Access Token or Registration Token
# For repo: needs 'repo' scope
# For org: needs 'admin:org' scope
ACCESS_TOKEN: ${GITHUB_TOKEN}
# Optional: Runner name (defaults to hostname)
RUNNER_NAME: cmnw-runner-I
# Optional: Runner labels (comma separated)
RUNNER_LABELS: docker,linux,self-hosted,cmnw
# Optional: Runner group (for organizations)
# RUNNER_GROUP: default
# Optional: Working directory
# RUNNER_WORKDIR: /tmp/runner/work
volumes:
# Mount Docker socket for Docker-in-Docker
- /var/run/docker.sock:/var/run/docker.sock
# Persistent runner work directory
- cmnw-runner-work:/tmp/runner/work
# Optional: Mount host directories for builds
- ./builds:/builds
# Optional: Cache directories for faster builds
- cmnw-runner-work:/home/runner/.cache
restart: always
# Optional: Resource limits
deploy:
resources:
limits:
cpus: '4.0'
memory: 6G
reservations:
cpus: '2.0'
memory: 4G
# Optional: Network configuration
networks:
- runner-network
# Optional: Security options
# security_opt:
# - no-new-privileges:true
cmnw-github-runner-II:
image: myoung34/github-runner:latest
container_name: cmnw-github-runner-II
environment:
REPO_URL: https://github.com/alexzedim/cmnw
ACCESS_TOKEN: ${GITHUB_TOKEN}
RUNNER_NAME: cmnw-runner-II
RUNNER_LABELS: docker,linux,self-hosted,cmnw
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- cmnw-runner-work:/tmp/runner/work
- ./builds:/builds
- cmnw-runner-work:/home/runner/.cache
restart: always
deploy:
resources:
limits:
cpus: '4.0'
memory: 6G
reservations:
cpus: '2.0'
memory: 4G
networks:
- runner-network
cmnw-github-runner-III:
image: myoung34/github-runner:latest
container_name: cmnw-github-runner-III
environment:
REPO_URL: https://github.com/alexzedim/cmnw
ACCESS_TOKEN: ${GITHUB_TOKEN}
RUNNER_NAME: cmnw-runner-III
RUNNER_LABELS: docker,linux,self-hosted,cmnw
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- cmnw-runner-work:/tmp/runner/work
- ./builds:/builds
- cmnw-runner-work:/home/runner/.cache
restart: always
deploy:
resources:
limits:
cpus: '4.0'
memory: 6G
reservations:
cpus: '2.0'
memory: 4G
networks:
- runner-network
# Optional: Multiple runners
oraculum-github-runner-I:
image: myoung34/github-runner:latest
container_name: oraculum-github-runner-I
environment:
REPO_URL: https://github.com/alexzedim/oraculum
ACCESS_TOKEN: ${GITHUB_TOKEN}
RUNNER_NAME: oraculum-runner-I
RUNNER_LABELS: docker,linux,self-hosted,oraculum
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- oraculum-runner-work:/tmp/runner/work
- ./builds:/builds
restart: always
networks:
- runner-network
oraculum-github-runner-II:
image: myoung34/github-runner:latest
container_name: oraculum-github-runner-II
environment:
REPO_URL: https://github.com/alexzedim/oraculum
ACCESS_TOKEN: ${GITHUB_TOKEN}
RUNNER_NAME: oraculum-runner-II
RUNNER_LABELS: docker,linux,self-hosted,oraculum
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- oraculum-runner-work:/tmp/runner/work
- ./builds:/builds
restart: always
networks:
- runner-network
volumes:
cmnw-runner-work:
driver: local
oraculum-runner-work:
driver: local
networks:
runner-network:
driver: bridge
storage-network:
driver: bridge