forked from andrewshawcare/docker-ecosystem-gocd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (41 loc) · 967 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
version: "2"
volumes:
var_lib_go-server_addons:
var_log_go-server:
etc_go:
go-addons:
var_go:
services:
consul:
image: gliderlabs/consul-server
command: -bootstrap
ports:
- '8500:8500'
registrator:
image: gliderlabs/registrator:master
volumes:
- /var/run/docker.sock:/tmp/docker.sock
command: -retry-attempts 10 consul://consul:8500
registry:
image: registry:2
ports:
- '5000:5000'
gocd-server:
image: gocd/gocd-server
ports:
- '8153:8153'
volumes:
- var_lib_go-server_addons:/var/lib/go-server/addons
- var_log_go-server:/var/log/go-server
- etc_go:/etc/go
- go-addons:/go-addons
- var_go:/var/go
- ./cruise-config.xml:/etc/go/cruise-config.xml
gocd-agent:
image: andrewshawcare/gocd-docker-agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- GO_SERVER=gocd-server
links:
- gocd-server