-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
287 lines (265 loc) · 7.16 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
version: '3.7'
services:
redis:
build: ./redis
container_name: redis
hostname: redis
networks:
private-dockers-network:
ipv4_address: 172.100.0.2
ports:
- ${REDIS_PORT}:6379
volumes:
- ./redis/data:/data
- ./redis/redis.conf:/etc/redis/redis.conf
mysql:
build: ./mysql/mysql56
container_name: mysql
hostname: mysql
networks:
private-dockers-network:
ipv4_address: ${MYSQL_IP}
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "123456"
volumes:
- ./mysql/mysql56/data:/var/lib/mysql
- ./mysql/mysql56/my.cnf:/etc/mysql/my.cnf
privileged: true
nginx:
build: ./nginx
container_name: nginx
hostname: nginx
networks:
private-dockers-network:
ipv4_address: 172.100.0.4
ports:
- "80:80"
volumes:
- ./nginx/etc/conf.d:/etc/nginx/conf.d
- ./nginx/log:/var/log/nginx
- /Users/taorong/dev/work/devmp.noahorganic:/usr/share/nginx/html/devmp.noahorganic
- /Users/taorong/dev/work/mylovegy-examination:/usr/share/nginx/html/exam.dev.com
php7:
build: ./php/php7
container_name: php7
hostname: php7
networks:
private-dockers-network:
ipv4_address: 172.100.0.5
ports:
- "9001:9001"
volumes:
- /Users/taorong/dev/work/devmp.noahorganic:/usr/share/nginx/html/devmp.noahorganic
- /Users/taorong/dev/work/mylovegy-examination:/usr/share/nginx/html/exam.dev.com
php5:
build: ./php/php5
container_name: php5
hostname: php5
networks:
private-dockers-network:
ipv4_address: 172.100.0.6
ports:
- "9000:9000"
volumes:
- /Users/taorong/dev/work/devmp.noahorganic:/usr/share/nginx/html/devmp.noahorganic
- ./php/php5/php.ini:/usr/local/etc/php/php.ini
elasticsearch:
build:
context: elasticsearch/
args:
ELK_VERSION: $ELK_VERSION
container_name: elasticsearch
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro,z
- ./elasticsearch/data:/usr/share/elasticsearch/data:z
networks:
private-dockers-network:
ipv4_address: ${ES_IP}
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
ELASTIC_USER: elastic
ELASTIC_PASSWORD: changeme
# Use single node discovery in order to disable production mode and avoid bootstrap checks.
# see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
discovery.type: single-node
mongo:
image: mongo
container_name: mongo
networks:
private-dockers-network:
ipv4_address: 172.100.0.11
ports:
- "27017:27017"
prometheus-node-exporter-demo:
image: prom/node-exporter
container_name: prometheus-node-exporter-demo
hostname: prometheus-node-exporter-demo
networks:
private-dockers-network:
ipv4_address: 172.100.0.12
ports:
- 9100:9100
volumes:
- ./prometheus/node-exporter/proc:/host/proc:ro
- ./prometheus/node-exporter/sys:/host/sys:ro
prometheus:
image: prom/prometheus
container_name: prometheus
hostname: prometheus
networks:
private-dockers-network:
ipv4_address: 172.100.0.13
ports:
- 9090:9090
volumes:
- ./prometheus/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana
container_name: grafana
hostname: grafana
networks:
private-dockers-network:
ipv4_address: 172.100.0.14
ports:
- 3000:3000
volumes:
- ./prometheus/grafana-storage:/var/lib/grafana
jaeger-tracing:
image: jaegertracing/all-in-one
container_name: jaeger-tracing
hostname: jaeger-tracing
networks:
private-dockers-network:
ipv4_address: 172.100.0.15
ports:
- 16686:16686 #web
- 5775:5775/udp
- 6831:6831/udp
- 6832:6832/udp
- 5778:5778
- 14268:14268
- 9411:9411
environment:
COLLECTOR_ZIPKIN_HTTP_PORT: "9411"
volumes:
- ./prometheus/grafana-storage:/var/lib/grafana
logstash:
build:
context: logstash/
args:
ELK_VERSION: $ELK_VERSION
container_name: logstash
volumes:
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro,z
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro,z
networks:
private-dockers-network:
ipv4_address: 172.100.0.23
extra_hosts:
- elasticsearch:${ES_IP}
ports:
- "5044:5044"
- "5000:5000/tcp"
- "5000:5000/udp"
- "9600:9600"
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
depends_on:
- elasticsearch
kibana:
build:
context: kibana/
args:
ELK_VERSION: $ELK_VERSION
container_name: kibana
volumes:
- ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro,z
networks:
private-dockers-network:
ipv4_address: 172.100.0.17
extra_hosts:
- elasticsearch:${ES_IP}
ports:
- "5601:5601"
depends_on:
- elasticsearch
# demo:
# build: ./demo
# networks:
# private-dockers-network:
# ipv4_address: 172.100.0.18
# ports:
# - 9012:8080
openldap:
container_name: openldap
image: osixia/openldap:1.5.0
networks:
private-dockers-network:
ipv4_address: 172.100.0.19
volumes:
- ./openldap/data/ldap:/var/lib/ldap
- ./openldap/data/slapd.d:/etc/ldap/slapd.d
ports:
- "389:389"
- "636:636"
environment:
- LDAP_ORGANISATION=baidu
- LDAP_DOMAIN=baidu.com
- LDAP_ADMIN_PASSWORD=asdasdasd
- LDAP_READONLY_USER=false
#- LDAP_READONLY_USER_USERNAME=readonly
#- LDAP_READONLY_USER_PASSWORD=readonly
# ldap 管理页面
openldap_phpldapadmin:
container_name: openldap_phpldapadmin
image: osixia/phpldapadmin:0.9.0
networks:
private-dockers-network:
ipv4_address: 172.100.0.20
ports:
- "9081:80"
environment:
- PHPLDAPADMIN_LDAP_HOSTS=172.100.0.20
- PHPLDAPADMIN_HTTPS=false
depends_on:
- openldap
# 自助密码服务
openldap_self-service-password:
container_name: openldap_self-service-password
image: tiredofit/self-service-password:5.1.2
networks:
private-dockers-network:
ipv4_address: 172.100.0.21
ports:
- "9082:80"
environment:
- LDAP_SERVER=openldap
- LDAP_STARTTLS=false
- LDAP_BINDDN=cn=admin,dc=baidu,dc=com
- LDAP_BINDPASS=asdasdasd
- LDAP_BASE_SEARCH=dc=baidu,dc=com
- MAIL_FROM_NAME=统一认证服务
- MAIL_SIGNATURE=\n\n\n欢迎使用统一认证服务~~
- NOTIFY_ON_CHANGE=true
- SMTP_AUTH_ON=true
- SMTP_AUTOTLS=true
- SMTP_HOST=smtp.exmail.qq.com
- SMTP_SECURE_TYPE=ssl
- SMTP_PORT=465
- SMTP_PASS=
- IS_BEHIND_PROXY=true
- SITE_URL=http://localhost:9082/
depends_on:
- openldap
networks:
private-dockers-network:
ipam:
config:
- subnet: 172.100.0.0/16