forked from gocd/gocd-trial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (35 loc) · 913 Bytes
/
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
version: "3"
services:
server:
image: gocd/gocd-server:v19.1.0
ports:
- "8153:8153"
- "8154:8154"
volumes:
- ./data:/godata
- ./data/home:/home/go
- ./scripts/server:/docker-entrypoint.d
- ./scripts/shared:/shared
environment:
- GO_SERVER_SYSTEM_PROPERTIES=-Dcruise.material.update.interval=2000 -Dmaterial.update.idle.interval=2000
depends_on:
- "gitserver"
agent:
image: gocd/gocd-agent-alpine-3.8:v19.1.0
environment:
- GO_SERVER_URL=https://server:8154/go
- AGENT_AUTO_REGISTER_KEY=agent-autoregister-key
volumes:
- ./scripts/agent:/docker-entrypoint.d
- ./scripts/shared:/shared
deploy:
replicas: 2
depends_on:
- "server"
- "gitserver"
gitserver:
image: gocdcontrib/git-http-backend:v2
ports:
- "8155:80"
volumes:
- ./repositories:/git