Hi guys,
I'm attempting to work with a docker-compose file to put 2 solr6s behind it.
I've added another NgInx to the compose file for the purposes of load balancing the solrs. Everything starts but looking at the admin console, it is not showing Tracking status for solr.
I'm looking to see if someone has an example of this. My nginx.conf file for solr looks as follows:
worker_processes 1;
events {
worker_connections 1024;
}
http {
upstream solrlb {
server solr6-1:8084;
}
server {
listen *:8983;
server_name solrlb;
location / {
proxy_pass http://solrlb;
proxy_set_header Host $host;
#proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
}
}My section for solr in the compose file (3.7 level)
solr6-1:
image: alfresco/alfresco-search-services:1.4.2
deploy:
resources:
limits:
memory: 2048M
reservations:
memory: 2048M
environment:
#Solr needs to know how to register itself with Alfresco
- SOLR_ALFRESCO_HOST=alfresco
- SOLR_ALFRESCO_PORT=8080
#Alfresco needs to know how to call solr
- SOLR_SOLR_HOST=solr6-1
- SOLR_SOLR_PORT=8983
#Create the default alfresco and archive cores
- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
#HTTP by default
- ALFRESCO_SECURE_COMMS=none
- "SOLR_JAVA_MEM=-Xms2g -Xmx2g"
ports:
- 8084:8983 #Browser port
solr-balancer:
image: alfresco/alfresco-acs-nginx:3.0.1
deploy:
resources:
limits:
memory: 128M
reservations:
memory: 128M
depends_on:
- solr6-1
ports:
- 8983:8983
volumes:
- type: bind
source: /Users/rstoops/dev/projects/alfresco6_docker_compose/solr-nginx.conf
target: /etc/nginx/nginx.confThanks in advance.