Comments (3)
Could you elaborate further as to what these changes mean for someone with solr setup with the following containers? Maybe a more verbose example as to what actually needs to change.
solr:
container_name: atmosphere_${DOCKER_ENV:-local}_solr
image: solr:5.5.4
network_mode: "bridge"
labels:
com.dnsdock.name: solr
com.dnsdock.image: atmosphere
# For each core you want automatically available add a solr
# configuration directory mapped under /opt/solr/server/solr
# The configurations should set the data area for their core
# to a directory under /var/lib/solr.
volumes:
# We make this a unique path so that there are no conflicts with other
# projects running solr in the container.
- ./env/solr/core01:/opt/solr/server/solr/atm
volumes_from:
- solr_data
# This container exists to allow setting the data area of solr to
# a persistent storage area and fixing permissions so that the solr
# container can write to it. This does not need to be done per core.
solr_data:
container_name: atmosphere_${DOCKER_ENV:-local}_solr_data
network_mode: "bridge"
build: ./env/solr_data
volumes:
# We make this a unique path so that there are no conflicts with other
# projects running solr in the container.
- /data/solr/solr:/var/lib/solr/atmosphere
The Dockerfile
referenced above: ./env/solr_data
contains:
# Use phase2/servicebase which is already set up for fix-attrs.d
FROM phase2/servicebase
VOLUME ["/var/lib/solr"]
ADD root /
from outrigger-examples.
volumes_from is deprecated, so instead you would use a named volume. Docker Volumes are like containers in that they are constructs managed by the docker system, but they are specifically for persisting data and making it available at a particular path in one or more container filesystems.
Here's broader context on the volumes section of your docker-compose.yml:
volumes:
- ./env/search/cores/core01:/opt/solr/server/solr/core01
- search-data:/var/lib/solr
from outrigger-examples.
This is in progress in #4
from outrigger-examples.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from outrigger-examples.