Merge branch 'acs-search-sharded' into acs-frontend-enterprise-sharded
This commit is contained in:
commit
52d690fc08
@ -1,7 +1,7 @@
|
|||||||
# Sourced from https://github.com/Alfresco/acs-deployment/blob/4.0.3/docker-compose/docker-compose.yml
|
# Sourced from https://github.com/Alfresco/acs-deployment/blob/4.0.3/docker-compose/docker-compose.yml
|
||||||
#
|
#
|
||||||
# Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose
|
# Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose
|
||||||
version: "2"
|
version: "2.1"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
platform:
|
platform:
|
||||||
@ -17,6 +17,7 @@ services:
|
|||||||
-Dsolr.host=search
|
-Dsolr.host=search
|
||||||
-Dsolr.port=8983
|
-Dsolr.port=8983
|
||||||
-Dsolr.secureComms=none
|
-Dsolr.secureComms=none
|
||||||
|
-Dsolr.useDynamicShardRegistration=true
|
||||||
-Dshare.host=${PROXY_HOST}
|
-Dshare.host=${PROXY_HOST}
|
||||||
-Dshare.port=${PROXY_PORT}
|
-Dshare.port=${PROXY_PORT}
|
||||||
-Dshare.protocol=${PROXY_PROTOCOL}
|
-Dshare.protocol=${PROXY_PROTOCOL}
|
||||||
@ -112,15 +113,29 @@ services:
|
|||||||
command: postgres -c max_connections=300 -c log_min_messages=LOG
|
command: postgres -c max_connections=300 -c log_min_messages=LOG
|
||||||
|
|
||||||
search:
|
search:
|
||||||
image: alfresco/alfresco-search-services:2.0.1
|
image: docker.inteligr8.com/inteligr8/alfresco-search-services:2.0.1
|
||||||
mem_limit: 1g
|
mem_limit: 1g
|
||||||
environment:
|
environment:
|
||||||
- SOLR_ALFRESCO_HOST=platform
|
- SOLR_ALFRESCO_HOST=platform
|
||||||
- SOLR_ALFRESCO_PORT=8080
|
- SOLR_ALFRESCO_PORT=8080
|
||||||
- SOLR_SOLR_HOST=search
|
- SOLR_SOLR_HOST=search
|
||||||
- SOLR_SOLR_PORT=8983
|
- SOLR_SOLR_PORT=8983
|
||||||
- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
|
|
||||||
- ALFRESCO_SECURE_COMMS=none
|
- ALFRESCO_SECURE_COMMS=none
|
||||||
|
ports:
|
||||||
|
- 8983:8983
|
||||||
|
healthcheck:
|
||||||
|
test: "curl -fsS http://localhost:8983/solr"
|
||||||
|
|
||||||
|
search-shard-init:
|
||||||
|
image: cfmanteiga/alpine-bash-curl-jq
|
||||||
|
mem_limit: 64m
|
||||||
|
command: [ "bash", "-c", "
|
||||||
|
curl -s http://search:8983/solr/admin/cores?action=newCore\\&core=alfresco\\&storeRef=workspace://SpacesStore\\&numShards=2\\&nodeInstance=1\\&numNodes=1\\&template=rerank\\&shardIds=1,2 &&
|
||||||
|
curl -s http://search:8983/solr/admin/cores?action=rename\\&core=alfresco-1\\&other=alfresco
|
||||||
|
"]
|
||||||
|
depends_on:
|
||||||
|
search:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
activemq:
|
activemq:
|
||||||
image: alfresco/alfresco-activemq:5.15.8
|
image: alfresco/alfresco-activemq:5.15.8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user