Create SolrCloud verification environment with Docker

Preparation of solr.in.sh

Copy from official git and change the following part .docker/etc/ Put it in default / solr.in.sh Change the directory according to your environment.

#ZK_HOST

↓

ZK_HOST="zookeeper1:2181/"

docker-compose.yml

version: '3.8'
services:
  solr_node1:
    image: solr:8.6
    container_name: solr_node1
    volumes:
      - ./.docker/etc/default/solr.in.sh:/etc/default/solr.in.sh
    ports:
      - "8981:8983"
    depends_on:
      - zookeeper1
  solr_node2:
    image: solr:8.6
    container_name: solr_node2
    volumes:
      - ./.docker/etc/default/solr.in.sh:/etc/default/solr.in.sh
    ports:
      - "8982:8983"
    depends_on:
      - zookeeper1
  zookeeper1:
    image: zookeeper:3.6
    container_name: zookeeper1
    environment:
      ZOO_MY_ID: 1
      ZOO_SERVERS: server.1=zookeeper1:2888:3888;2181
      ZOO_4LW_COMMANDS_WHITELIST: mntr,conf,ruok

infoStream settings

If infoStream is enabled, detailed log related to index generation will be output.

solrconfig.xml


  <indexConfig>
     <infoStream>true</infoStream>
  </indexConfig>

It will be enabled if you write the above setting in solrconfig.xml.

/var/solr/log4j2.xml


<AsyncLogger name="org.apache.solr.update.LoggingInfoStream" level="off"/>
↓
<AsyncLogger name="org.apache.solr.update.LoggingInfoStream" level="info"/>

If the level of LoggingInfoStream is off, it will not be output, so change it to info. Now it will be output to solr.log.

Start-up

docker-compose up -d

http://localhost:8982/solr/#/ The screen is displayed when you access.

Recommended Posts

Create SolrCloud verification environment with Docker
Create a Vue3 environment with Docker!
Create Laravel environment with Docker (docker-compose)
Create Rails 6 + MySQL environment with Docker compose
Create a MySQL environment with Docker from 0-> 1
Create Spring Boot-gradle-mysql development environment with Docker
[Docker] Create Node.js + express + webpack environment with Docker
[Memo] Create a CentOS 8 environment easily with Docker
Create a Spring Boot development environment with docker
Pytorch execution environment with Docker
[Docker] Create Elasticsearch, Kibana environment!
[Docker] Rails 5.2 environment construction with docker
Build docker environment with WSL
React environment construction with Docker
Create an E2E test environment with Docker x Cypress
[Note] Create a java environment from scratch with docker
Create Chisel development environment with Windows10 + WSL2 + VScode + Docker
Rails + MySQL environment construction with Docker
Node.js environment construction with Docker Compose
Build Couchbase local environment with Docker
Build a Node.js environment with Docker
Let's create Ubuntu environment with vmware
Environment construction with Docker for beginners
Build PlantUML environment with VSCode + Docker
Build environment with vue.js + rails + docker
Build Rails environment with Docker Compose
[Environment construction with Docker] Rails 6 & MySQL 8
Create Rails5 and postgresql environment with Docker and make pgadmin available
I tried to create a padrino development environment with Docker
Build docker + laravel environment with laradock
Alert slack with alert manager in Docker environment
GPU environment construction with Docker [October 2020 version]
Building Rails 6 and PostgreSQL environment with Docker
Laravel development environment construction with Docker (Mac)
Build a PureScript development environment with Docker
Environment construction with Docker (Ubuntu20.04) + Laravel + nginx
Edit Mysql with commands in Docker environment
Laravel + MySQL + phpMyadmin environment construction with Docker
Build a Wordpress development environment with Docker
[Docker] Build Jupyter Lab execution environment with Docker
Launch java verification environment locally with Vagrant
Build an environment with Docker on AWS
Create external (URL) monitoring with Docker + Prometheus
Lightweight PHP 7.4 development environment created with Docker
Build TensorFlow operation check environment with Docker
Install Docker and create Java runtime environment
How to build Rails 6 environment with Docker
Build an environment of "API development + API verification using Swagger UI" with Docker
Docker environment construction
Create a java web application development environment with docker for mac part2
Spring Boot environment construction with Docker (January 2021 version)
Create a Privoxy + Tor environment instantly using Docker
Make SpringBoot1.5 + Gradle4.4 + Java8 + Docker environment compatible with Java11
Self-hosting with Docker of AuteMuteUs in Windows environment
[Windows] [IntelliJ] [Java] [Tomcat] Create a Tomcat9 environment with IntelliJ
Build a Laravel / Docker environment with VSCode devcontainer
Environment construction command memo with Docker on AWS
Build a WordPress development environment quickly with Docker
Rails6 [API mode] + MySQL5.7 environment construction with Docker
Create jupyter notebook with Docker and run ruby
Prepare a scraping environment with Docker and Java