-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.52 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
version: '3'
services:
gocd-server:
build:
context: ./server
args:
- GOCD_VERSION=17.1.0-4511
- GOCD_DOWNLOAD_URL=https://download.gocd.io/binaries
- GOCD_DOWNLOAD_SHA256=caa68da42f5ad54c52331ff1f7ecbbe8ab48fab66600c23638f17e4ab5d77d24
environment:
- MSG_TIME=0
- GO_AGENT_AUTO_REGISTER_KEY=388b633a88de126531afa41eff9aa69e
volumes:
- ./server/config:/var/lib/go-server/config/
ports:
- 8153:8153
- 8154:8154
gocd-server-backup:
build:
context: ./server-backup
volumes:
- ./server-backup/data:/var/lib/go-server/artifacts/serverBackups/
links:
- gocd-server
dind:
build:
context: ./dind
cap_add:
- ALL
privileged: true
environment:
- DOCKER_CONTENT_TRUST=1
gocd-agent:
build:
context: ./agent
args:
- GOCD_VERSION=17.1.0-4511
- GOCD_DOWNLOAD_URL=https://download.go.cd/binaries
- GOCD_DOWNLOAD_SHA256=
- DOCKER_COMPOSE_DOWNLOAD_URL=https://github.com/docker/compose/releases/download/1.11.2/docker-compose-Linux-x86_64
- DOCKER_COMPOSE_DOWNLOAD_SHA256=8d55adce12461c9f2abd907da1138b3e925919212611a54c94c4794ab0a975fc
- DOCKER_DOWNLOAD_URL=https://get.docker.com/builds/Linux/x86_64/docker-1.13.1.tgz
- DOCKER_DOWNLOAD_SHA256=97892375e756fd29a304bd8cd9ffb256c2e7c8fd759e12a55a6336e15100ad75
environment:
- GO_SERVER_URL=https://gocd-server:8154/go
- DOCKER_HOST=dind
links:
- gocd-server
- dind