-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
42 lines (42 loc) · 1014 Bytes
/
docker-compose.yaml
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
---
services:
agent01:
image: ${IMAGE}
container_name: ${AGENTPREFIX}01
hostname: ${AGENTPREFIX}01
command:
--once
user: ${USER_ID}:${GROUP_ID}
security_opt:
- seccomp=unconfined
- apparmor=unconfined
environment:
AZP_URL: ${AZP_URL}
AZP_POOL: ${AZP_POOL}
AZP_AGENT_NAME: ${AGENTPREFIX}01
AZP_TOKEN: ${AZP_TOKEN}
PROXY_URL: ${PROXY_URL}
devices:
- /dev/fuse:/dev/fuse:rw
restart: unless-stopped
stop_grace_period: 30s
agent02:
image: ${IMAGE}
container_name: ${AGENTPREFIX}02
hostname: ${AGENTPREFIX}02
command:
--once
user: ${USER_ID}:${GROUP_ID}
security_opt:
- seccomp=unconfined
- apparmor=unconfined
environment:
AZP_URL: ${AZP_URL}
AZP_POOL: ${AZP_POOL}
AZP_AGENT_NAME: ${AGENTPREFIX}02
AZP_TOKEN: ${AZP_TOKEN}
PROXY_URL: ${PROXY_URL}
devices:
- /dev/fuse:/dev/fuse:rw
restart: unless-stopped
stop_grace_period: 30s