-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (41 loc) · 1.06 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
name: solr-cluster
services:
solr1:
container_name: solr1
depends_on:
- zoo1
environment:
- ZK_HOST=zoo1:${ZK_PORT}
- SOLR_HOST=solr1
- SOLR_PORT=${SOLR_PORT}
- SOLR_VERSION=${SOLR_VERSION}
- VERBOSE=true
image: solr:${SOLR_VERSION}
networks:
- solr
ports:
- "${SOLR_PORT}:${SOLR_PORT}"
restart: unless-stopped
volumes:
- ./solr/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- solr1_data:/var/solr
zoo1:
container_name: zoo1
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=zoo1:2888:3888;${ZK_PORT}
ZOO_4LW_COMMANDS_WHITELIST: mntr, conf, ruok
ZOO_CFG_EXTRA: "metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider metricsProvider.httpPort=7000 metricsProvider.exportJvmInfo=true"
image: zookeeper:${ZK_VERSION}
networks:
- solr
ports:
- "${ZK_PORT}:2181"
restart: unless-stopped
volumes:
- zoo1_data:/data
networks:
solr:
volumes:
solr1_data:
zoo1_data: