-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
38 lines (37 loc) · 917 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
version: "2"
volumes:
var_lib_go-server_addons:
var_log_go-server:
etc_go:
go-addons:
var_go:
services:
app-server:
build: ./app-server
image: diabol/app-server
ports:
- '8080:8080'
gocd-server:
image: gocd/gocd-server:16.12.0
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
- ./users:/etc/go/users
gocd-agent:
build: ./gocd-agent
image: diabol/gocd-agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./app-server/ansible.cfg:/etc/ansible/ansible.cfg
- ./gocd-agent/config.ini:/etc/gocd-plumber/config.ini
environment:
- GO_SERVER=gocd-server
links:
- gocd-server
- app-server