-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-multi-solr.yml
70 lines (70 loc) · 2.46 KB
/
docker-compose-multi-solr.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
version: '3.9'
services:
# zoo-1:
# image: "zookeeper:3.8"
# ports:
# - "2181:2181"
# # volumes:
# # - ./data/zoo-1:/opt/persist
# environment:
# ZOO_MY_ID: 1
# ZOO_PORT: 2181
# # ZOO_SERVERS: server.1=zoo-1:2888:3888 server.2=zoo-2:2888:3888 server.3=zoo-3:2888:3888
# # ZOO_LOG_DIR: /opt/persist/logs
# # ZOO_DATA_LOG_DIR: /opt/persist/data
solr-2:
image: ${SOLR_IMAGE:-solr:8}
# deploy:
# resources:
# limits:
# cpus: '1.0'
# memory: 4gb
# #reservations:
# # cpus: '1.0'
# # memory: 4gb
# ports:
# - 8983:8983
# volumes:
# - ./assets/urlrewrite.xml:/opt/solr/server/solr-webapp/webapp/WEB-INF/urlrewrite.xml
# - ./assets/urlrewritefilter-4.0.4.jar:/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/urlrewritefilter-4.0.4.jar
# - ./assets/web.xml:/opt/solr/server/solr-webapp/webapp/WEB-INF/web.xml
environment:
# SOLR_PORT: 8082
# SOLR_HOME: /store/solr
ZK_HOST: zoo-1:2181
# SOLR_LOGS_DIR: /opt/logs
SOLR_HOST: solr-2
SOLR_HEAP: ${SOLR_HEAP:-}
SOLR_JAVA_MEM: ${SOLR_JAVA_MEM:-}
SOLR_LOG_LEVEL: ${SOLR_LOG_LEVEL:-INFO}
SOLR_OPTS: ${SOLR_OPTS:--Dlucene.cms.override_spins=false -Dsolr.sharedLib=/opt/solr/server/shared/lib}
depends_on:
- zoo-1
solr-3:
image: ${SOLR_IMAGE:-solr:8}
# deploy:
# resources:
# limits:
# cpus: '1.0'
# memory: 4gb
# #reservations:
# # cpus: '1.0'
# # memory: 4gb
# ports:
# - 8983:8983
# volumes:
# - ./assets/urlrewrite.xml:/opt/solr/server/solr-webapp/webapp/WEB-INF/urlrewrite.xml
# - ./assets/urlrewritefilter-4.0.4.jar:/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/urlrewritefilter-4.0.4.jar
# - ./assets/web.xml:/opt/solr/server/solr-webapp/webapp/WEB-INF/web.xml
environment:
# SOLR_PORT: 8082
# SOLR_HOME: /store/solr
ZK_HOST: zoo-1:2181
# SOLR_LOGS_DIR: /opt/logs
SOLR_HOST: solr-3
SOLR_HEAP: ${SOLR_HEAP:-}
SOLR_JAVA_MEM: ${SOLR_JAVA_MEM:-}
SOLR_LOG_LEVEL: ${SOLR_LOG_LEVEL:-INFO}
SOLR_OPTS: ${SOLR_OPTS:--Dlucene.cms.override_spins=false -Dsolr.sharedLib=/opt/solr/server/shared/lib}
depends_on:
- zoo-1