-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
62 lines (55 loc) · 1.24 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3'
services:
local-pipeline:
build: local-pipeline
environment:
- DOCKER_IP
- DOCKER_HOSTNAME
- DOCKER_SERVER_URL
- GIT_SERVER_URL=http://gerrit:8080/sample-app
- JAVA_OPTS
- JENKINS_URL=http://local-pipeline
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- local-volume:/var/jenkins_home
restart: always
networks:
- local-network
central-pipeline:
build: central-pipeline
environment:
- DOCKER_IP
- DOCKER_HOSTNAME
- DOCKER_SERVER_URL
- GIT_SERVER_URL=https://github.com/NET-A-PORTER/jenkinsworld-2017-sample-app
- JAVA_OPTS
- JENKINS_URL=http://central-pipeline
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- central-volume:/var/jenkins_home
restart: always
networks:
- local-network
nginx:
build: nginx
ports:
- "80:80"
restart: always
networks:
- local-network
gerrit:
build: gerrit
networks:
- local-network
ports:
- "29418:29418"
volumes:
- ./.git/modules/sample-app:/var/gerrit/git/sample-app.git
networks:
local-network:
driver: bridge
volumes:
local-volume:
central-volume: