From 355ca6d18fe4f9efad879724dd09bd8ec9676bd0 Mon Sep 17 00:00:00 2001 From: Toby Bellwood Date: Thu, 28 Mar 2024 10:47:06 +1100 Subject: [PATCH] fix: configure directory in command for solr --- docker-compose.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f1b0300..19e5475 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -111,9 +111,10 @@ services: - "8983" volumes: - solr-8-data:/var/solr - command: - - solr-precreate - - mycore + command: ["sh", "-c", " + mkdir -p /var/solr/data; + solr-precreate mycore + "] solr-9: image: uselagoon/solr-9:latest @@ -124,6 +125,7 @@ services: - "8983" volumes: - solr-9-data:/var/solr - command: - - solr-precreate - - mycore + command: ["sh", "-c", " + mkdir -p /var/solr/data; + solr-precreate mycore + "]