Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make solr-data persistent #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion docker-compose.ibexa-solr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@
#ddev-generated

services:
initializer:
image: alpine
container_name: ddev-${DDEV_SITENAME}-ibexa-solr-initializer
restart: "no"
entrypoint: |
/bin/sh -c "chown 8983:8983 /solr"
volumes:
- ./data/solr:/solr
solr:
depends_on:
- initializer
# Name of container using standard ddev convention
container_name: ddev-${DDEV_SITENAME}-ibexa-solr
# The solr docker image is at https://hub.docker.com/_/solr/
Expand All @@ -26,6 +36,7 @@ services:
# to the host port 8983 vid ddev-router reverse proxy.
- HTTP_EXPOSE=8983:8983
volumes:
- ./data/solr:/opt/solr/data
- solr:/var/solr
- ./solr:/solr-conf
- ".:/mnt/ddev_config"
Expand All @@ -36,4 +47,4 @@ services:
volumes:
# solr is a persistent Docker volume for solr data
solr:
name: "ddev-${DDEV_SITENAME}_solr"
name: "ddev-${DDEV_SITENAME}_solr"