A Solr in Docker implementation.
This repository contains notes for running Solr in Docker.
Reference: Install Docker Engine on Fedora
Reference: Solr in Docker
services:
solr:
image: solr:8.11.4
ports:
- "127.0.0.1:8983:8983"
volumes:
- data:/var/solr
command:
- solr-precreate
- gettingstarted
deploy:
resources:
limits:
memory: 16G
volumes:
data:
sudo docker compose up -d
sudo ls -la /var/lib/docker/volumes
sudo ls -la /var/lib/docker/volumes/solr_in_docker_data/_data/data
sudo rsync -r --progress /home/null/Desktop/your-core /var/lib/docker/volumes/solr_in_docker_data/_data/data
sudo chown -R 8983:8983 /var/lib/docker/volumes/solr_in_docker_data/_data/data/your-core
The docker-compose.yml
mapped 127.0.0.1:8983
on the host to the container port. You can access the Solr server's UI using the mapped IP and port.
http://127.0.0.1:8983/solr/#/
sudo systemctl start docker
sudo docker image ls -a
sudo docker container ls -a
sudo docker container restart '<CONTAINER ID>'
sudo docker container rm -f $(sudo docker container ls -qa); sudo docker image rm -f $(sudo docker image ls -qa)
sudo docker container rm -f $(sudo docker container ls -qa); sudo docker image rm -f $(sudo docker image ls -qa); sudo docker volume rm -f $(sudo docker volume ls)