mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
SEARCH-196: Verifying ssl, dynamic shard registration
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
version: '2'
|
||||
services:
|
||||
repo:
|
||||
image: docker-internal.alfresco.com/platform:latest
|
||||
environment:
|
||||
JAVA_OPTS : "-Dsolr.secureComms=https -Dsolr.useDynamicShardRegistration=true"
|
||||
ports:
|
||||
- "7203:7203" #JMX connect via service:jmx:rmi:///jndi/rmi://localhost:7203/jmxrmi
|
||||
- "5005:5005" #Java debugging
|
||||
- "8082:8080" #Browser port
|
||||
share:
|
||||
image: docker-internal.alfresco.com/share:5.2.1-demo
|
||||
ports:
|
||||
- "8081:8080"
|
||||
environment:
|
||||
- "REPO_HOST=repo:8080"
|
||||
solr6:
|
||||
image: docker-internal.alfresco.com/search-services:develop-latest
|
||||
command: [ "/opt/alfresco-solr/solr/bin/solr", "start", "-f", "-p","8084", "-a",
|
||||
"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044"]
|
||||
expose:
|
||||
- "8084"
|
||||
environment:
|
||||
#Solr needs to know how to register itself with Alfresco
|
||||
SOLR_ALFRESCO_HOST: repo
|
||||
SOLR_ALFRESCO_PORT: 8080
|
||||
#Alfresco needs to know how to call solr
|
||||
SOLR_SOLR_HOST: solr6
|
||||
SOLR_SOLR_PORT: 8084
|
||||
|
||||
#SSL setup
|
||||
SOLR_SSL_KEY_STORE: /opt/alfresco/alf_data/keystore/ssl.repo.client.keystore
|
||||
SOLR_SSL_KEY_STORE_PASSWORD: kT9X6oe68t
|
||||
SOLR_SSL_TRUST_STORE: /opt/alfresco/alf_data/keystore/ssl.repo.client.truststore
|
||||
SOLR_SSL_TRUST_STORE_PASSWORD: kT9X6oe68t
|
||||
|
||||
ports:
|
||||
- "8984:8084" #Browser port
|
||||
- "1044:1044" #Java debugging
|
||||
volumes_from:
|
||||
- repo:ro
|
||||
|
||||
#docker-compose -f compose-ssl-dynamic.yml up
|
||||
#Bash to Alfresco instance: docker exec -it [containerid] bash
|
||||
# cd /opt/alfresco/alf_data/keystore
|
||||
# chmod +x generate_keystores.sh
|
||||
# ./generate_keystores.sh
|
||||
# cp ~/ssl.repo.client.keystore /opt/alfresco/alf_data/keystore/
|
||||
# cp ~/ssl.repo.client.truststore /opt/alfresco/alf_data/keystore/
|
||||
#Bash to Solr instance: docker exec -it [containerid] bash
|
||||
# cd /opt/alfresco-solr/solrhome/templates/rerank/conf
|
||||
# rm ssl.repo.client.truststore
|
||||
# rm ssl.repo.client.keystore
|
||||
# cp /opt/alfresco/alf_data/keystore/ssl.repo.client.keystore .
|
||||
# cp /opt/alfresco/alf_data/keystore/ssl.repo.client.truststore .
|
||||
# edit solrhome/templates/rerank/conf/solrcore.properties and set alfresco.secureComms=https
|
||||
# Uncomment the SSL setup config (above)
|
||||
# Stop and restart
|
||||
# Go to Index Server Sharding admin page
|
||||
# The index server is: https://solr6:8084/solr
|
||||
# Create the alfresco and archive cores using the buttons
|
||||
Reference in New Issue
Block a user