-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (67 loc) · 2.68 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
version: "3.2"
services:
zk1:
image: jplock/zookeeper:3.4.10
ports:
- "2181:2181"
solr1:
image: solr:7.1
ports:
- "8983:8983"
volumes:
- ./wait-for-it.sh:/usr/bin/wait-for-it.sh
- ./solr.xml:/opt/solr/server/solr/solr.xml
- ./solr-influxdb-reporter.jar:/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-influxdb-reporter.jar
- ./metrics-influxdb-0.9.3.jar:/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/metrics-influxdb-0.9.3.jar
- ./grafana-register.sh:/opt/grafana-register.sh
- ./solr-dashboard.json:/opt/solr-dashboard.json
command: /bin/bash -c "/usr/bin/wait-for-it.sh -h zk1 -p 2181 -t 0 && /usr/bin/wait-for-it.sh -h influxdb -p 8086 -t 0 && /usr/bin/wait-for-it.sh -h grafana -p 3000 -t 0 && cd /opt && /opt/grafana-register.sh; /opt/solr/bin/solr -c -f -z zk1:2181 -m 4g"
links:
- influxdb
- grafana
solr2:
image: solr:7.1
volumes:
- ./wait-for-it.sh:/usr/bin/wait-for-it.sh
- ./solr.xml:/opt/solr/server/solr/solr.xml
- ./solr-influxdb-reporter.jar:/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-influxdb-reporter.jar
- ./metrics-influxdb-0.9.3.jar:/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/metrics-influxdb-0.9.3.jar
command: /bin/bash -c "/usr/bin/wait-for-it.sh -h zk1 -p 2181 -t 0; /opt/solr/bin/solr -c -f -z zk1:2181 -m 4g"
links:
- influxdb
solr3:
image: solr:7.1
volumes:
- ./wait-for-it.sh:/usr/bin/wait-for-it.sh
- ./solr.xml:/opt/solr/server/solr/solr.xml
- ./solr-influxdb-reporter.jar:/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-influxdb-reporter.jar
- ./metrics-influxdb-0.9.3.jar:/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/metrics-influxdb-0.9.3.jar
command: /bin/bash -c "/usr/bin/wait-for-it.sh -h zk1 -p 2181 -t 0; /opt/solr/bin/solr -c -f -z zk1:2181 -m 4g"
links:
- influxdb
solr4:
image: solr:7.1
volumes:
- ./wait-for-it.sh:/usr/bin/wait-for-it.sh
- ./solr.xml:/opt/solr/server/solr/solr.xml
- ./solr-influxdb-reporter.jar:/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-influxdb-reporter.jar
- ./metrics-influxdb-0.9.3.jar:/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/metrics-influxdb-0.9.3.jar
command: /bin/bash -c "/usr/bin/wait-for-it.sh -h zk1 -p 2181 -t 0; /opt/solr/bin/solr -c -f -z zk1:2181 -m 4g"
links:
- influxdb
influxdb:
image: influxdb:latest
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
#env_file:
#- 'env.influxdb'
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
#env_file:
#- 'env.grafana'
links:
- influxdb