-
Notifications
You must be signed in to change notification settings - Fork 103
/
docker-compose.yml
86 lines (81 loc) · 3.77 KB
/
docker-compose.yml
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
name: proof-systems-github-runners
networks:
proof-systems:
driver: bridge
services:
proof-systems-runner-1:
image: ${GITHUB_RUNNER_DOCKER_IMAGE}
environment:
REPO_URL: ${GITHUB_RUNNERS_REPO_URL}
RUNNER_NAME: ${GITHUB_RUNNER_NAME_PERFIX}-1
RUNNER_TOKEN: ${GITHUB_RUNNER_1_TOKEN}
RUNNER_WORKDIR: /tmp/${GITHUB_RUNNER_NAME_PERFIX}-1/work
RUNNER_GROUP: ${GITHUB_RUNNERS_GROUP}
RUNNER_SCOPE: "${GITHUB_RUNNER_SCOPE}"
LABELS: linux,x64,${GITHUB_RUNNERS_GROUP},${GITHUB_RUNNER_NAME_PERFIX}-1
security_opt:
# needed on SELinux systems to allow docker container to manage other docker containers
- label:disable
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/tmp/${GITHUB_RUNNER_NAME_PERFIX}-1:/tmp/${GITHUB_RUNNER_NAME_PERFIX}-1"
# note: a quirk of docker-in-docker is that this path
# needs to be the same path on host and inside the container,
# docker mgmt cmds run outside of docker but expect the paths from within
proof-systems-runner-2:
image: ${GITHUB_RUNNER_DOCKER_IMAGE}
environment:
REPO_URL: ${GITHUB_RUNNERS_REPO_URL}
RUNNER_NAME: ${GITHUB_RUNNER_NAME_PERFIX}-2
RUNNER_TOKEN: ${GITHUB_RUNNER_2_TOKEN}
RUNNER_WORKDIR: /tmp/${GITHUB_RUNNER_NAME_PERFIX}-2/work
RUNNER_GROUP: ${GITHUB_RUNNERS_GROUP}
RUNNER_SCOPE: "${GITHUB_RUNNER_SCOPE}"
LABELS: linux,x64,${GITHUB_RUNNERS_GROUP},${GITHUB_RUNNER_NAME_PERFIX}-2
security_opt:
# needed on SELinux systems to allow docker container to manage other docker containers
- label:disable
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/tmp/${GITHUB_RUNNER_NAME_PERFIX}-2:/tmp/${GITHUB_RUNNER_NAME_PERFIX}-2"
# note: a quirk of docker-in-docker is that this path
# needs to be the same path on host and inside the container,
# docker mgmt cmds run outside of docker but expect the paths from within
proof-systems-runner-3:
image: ${GITHUB_RUNNER_DOCKER_IMAGE}
environment:
REPO_URL: ${GITHUB_RUNNERS_REPO_URL}
RUNNER_NAME: ${GITHUB_RUNNER_NAME_PERFIX}-3
RUNNER_TOKEN: ${GITHUB_RUNNER_3_TOKEN}
RUNNER_WORKDIR: /tmp/${GITHUB_RUNNER_NAME_PERFIX}-3/work
RUNNER_GROUP: ${GITHUB_RUNNERS_GROUP}
RUNNER_SCOPE: "${GITHUB_RUNNER_SCOPE}"
LABELS: linux,x64,${GITHUB_RUNNERS_GROUP},${GITHUB_RUNNER_NAME_PERFIX}-3
security_opt:
# needed on SELinux systems to allow docker container to manage other docker containers
- label:disable
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/tmp/${GITHUB_RUNNER_NAME_PERFIX}-3:/tmp/${GITHUB_RUNNER_NAME_PERFIX}-3"
# note: a quirk of docker-in-docker is that this path
# needs to be the same path on host and inside the container,
# docker mgmt cmds run outside of docker but expect the paths from within
proof-systems-runner-4:
image: ${GITHUB_RUNNER_DOCKER_IMAGE}
environment:
REPO_URL: ${GITHUB_RUNNERS_REPO_URL}
RUNNER_NAME: ${GITHUB_RUNNER_NAME_PERFIX}-4
RUNNER_TOKEN: ${GITHUB_RUNNER_4_TOKEN}
RUNNER_WORKDIR: /tmp/${GITHUB_RUNNER_NAME_PERFIX}-4/work
RUNNER_GROUP: ${GITHUB_RUNNERS_GROUP}
RUNNER_SCOPE: "${GITHUB_RUNNER_SCOPE}"
LABELS: linux,x64,${GITHUB_RUNNERS_GROUP},${GITHUB_RUNNER_NAME_PERFIX}-4
security_opt:
# needed on SELinux systems to allow docker container to manage other docker containers
- label:disable
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/tmp/${GITHUB_RUNNER_NAME_PERFIX}-4:/tmp/${GITHUB_RUNNER_NAME_PERFIX}-4"
# note: a quirk of docker-in-docker is that this path
# needs to be the same path on host and inside the container,
# docker mgmt cmds run outside of docker but expect the paths from within