forked from cmcornejocrespo/workshop-jbcn-2017
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
175 lines (175 loc) · 4.05 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
version: "3"
services:
gitlab:
container_name: gitlab
image: gitlab/gitlab-ce
hostname: gitlab
ports:
- 10000:80
environment:
GITLAB_OMNIBUS_CONFIG: |
postgresql['shared_buffers'] = "256MB"
unicorn['worker_processes'] = 2
gitlab_rails['initial_root_password'] = "jBCNConf2017"
volumes:
- gitlab-data-config:/etc/gitlab
- gitlab-data-logs:/var/log/gitlab
- gitlab-data:/var/opt/gitlab
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP}:12201"
tag: tag-gitlab
depends_on:
- graylog
networks:
stack-ci-network:
jenkins:
container_name: jenkins
build:
context: ./jenkins
hostname: jenkins
ports:
- 11000:8080
environment:
JAVA_OPTS: "-Xmx768m"
volumes:
- jenkins-data:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP}:12201"
tag: tag-jenkins
extra_hosts:
- "openshift:${DOCKER_HOST_IP}"
depends_on:
- graylog
- gitlab
networks:
stack-ci-network:
nexus:
container_name: nexus
image: sonatype/nexus3
hostname: nexus
ports:
- 12000:8081
environment:
JAVA_MAX_HEAP: 1024m
volumes:
- nexus-data:/nexus-data
- /etc/timezone:/etc/timezone
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP}:12201"
tag: tag-nexus
depends_on:
- graylog
networks:
stack-ci-network:
sonarqube:
container_name: sonarqube
image: sonarqube
hostname: sonarqube
ports:
- 13000:9000
environment:
- JAVA_OPTS=-Xmx768m
volumes:
- sonarqube-data:/opt/sonarqube/data
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP}:12201"
tag: tag-sonarqube
depends_on:
- graylog
networks:
stack-ci-network:
registry:
container_name: registry
image: registry
hostname: registry
ports:
- 5000:5000
volumes:
- registry-data:/var/lib/registry
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP}:12201"
tag: tag-registry
depends_on:
- graylog
networks:
stack-ci-network:
openshift-origin:
image: openshift/origin:v1.5.1
privileged: true
pid: host
network_mode: host
command: start
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys
- /sys/fs/cgroup:/sys/fs/cgroup:rw
- /var/lib/docker:/var/lib/docker:rw
- /var/lib/origin/openshift.local.volumes:/var/lib/origin/openshift.local.volumes:rslave
mongo:
container_name: mongo
image: "mongo:3"
volumes:
- graylog-data-mongo:/data/db
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP}:12201"
tag: tag-mongo-graylog
networks:
stack-ci-network:
elasticsearch:
container_name: elasticsearch
image: "elasticsearch:2"
command: "elasticsearch -Des.cluster.name='graylog'"
volumes:
- graylog-data-elasticsearch:/usr/share/elasticsearch/data
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP}:12201"
tag: tag-elasticsearch-graylog
networks:
stack-ci-network:
graylog:
container_name: graylog
build:
context: ./graylog
hostname: graylog
volumes:
- graylog-data-journal:/usr/share/graylog/data/journal
- graylog-config:/usr/share/graylog/data/config
depends_on:
- mongo
- elasticsearch
ports:
- 9000:9000
- 12201/udp:12201/udp
- 1514/udp:1514/udp
networks:
stack-ci-network:
networks:
stack-ci-network:
volumes:
gitlab-data-config:
gitlab-data-logs:
gitlab-data:
jenkins-data:
nexus-data:
sonarqube-data:
registry-data:
graylog-data-mongo:
graylog-data-elasticsearch:
graylog-data-journal:
graylog-config: