@@ -33,20 +33,18 @@ services:
3333 # Tell Statistics to commit all views immediately instead of waiting on Solr's autocommit.
3434 # This allows us to generate statistics in e2e tests so that statistics pages can be tested thoroughly.
3535 solr__D__statistics__P__autoCommit : ' false'
36+ image : " ${DOCKER_OWNER:-dspace}/dspace:${DSPACE_VER:-latest-test}"
3637 depends_on :
3738 - dspacedb
38- image : dspace/dspace:latest-test
3939 networks :
40- dspacenet :
40+ - dspacenet
4141 ports :
4242 - published : 8080
4343 target : 8080
4444 stdin_open : true
4545 tty : true
4646 volumes :
4747 - assetstore:/dspace/assetstore
48- # Mount DSpace's solr configs to a volume, so that we can share to 'dspacesolr' container (see below)
49- - solr_configs:/dspace/solr
5048 # Ensure that the database is ready BEFORE starting tomcat
5149 # 1. While a TCP connection to dspacedb port 5432 is not available, continue to sleep
5250 # 2. Then, run database migration to init database tables (including any out-of-order ignored migrations, if any)
@@ -70,31 +68,25 @@ services:
7068 PGDATA : /pgdata
7169 image : dspace/dspace-postgres-pgcrypto:loadsql
7270 networks :
73- dspacenet :
71+ - dspacenet
7472 stdin_open : true
7573 tty : true
7674 volumes :
75+ # Keep Postgres data directory between reboots
7776 - pgdata:/pgdata
7877 # DSpace Solr container
7978 dspacesolr :
8079 container_name : dspacesolr
81- # Uses official Solr image at https://hub.docker.com/_/solr/
82- image : solr:8.11-slim
83- # Needs main 'dspace' container to start first to guarantee access to solr_configs
84- depends_on :
85- - dspace
80+ image : " ${DOCKER_OWNER:-dspace}/dspace-solr:${DSPACE_VER:-latest}"
8681 networks :
87- dspacenet :
82+ - dspacenet
8883 ports :
8984 - published : 8983
9085 target : 8983
9186 stdin_open : true
9287 tty : true
9388 working_dir : /var/solr/data
9489 volumes :
95- # Mount our "solr_configs" volume available under the Solr's configsets folder (in a 'dspace' subfolder)
96- # This copies the Solr configs from main 'dspace' container into 'dspacesolr' via that volume
97- - solr_configs:/opt/solr/server/solr/configsets/dspace
9890 # Keep Solr data directory between reboots
9991 - solr_data:/var/solr/data
10092 # Initialize all DSpace Solr cores using the mounted configsets (see above), then start Solr
@@ -103,14 +95,18 @@ services:
10395 - ' -c'
10496 - |
10597 init-var-solr
106- precreate-core authority /opt/solr/server/solr/configsets/dspace/authority
107- precreate-core oai /opt/solr/server/solr/configsets/dspace/oai
108- precreate-core search /opt/solr/server/solr/configsets/dspace/search
109- precreate-core statistics /opt/solr/server/solr/configsets/dspace/statistics
98+ precreate-core authority /opt/solr/server/solr/configsets/authority
99+ cp -r /opt/solr/server/solr/configsets/authority/* authority
100+ precreate-core oai /opt/solr/server/solr/configsets/oai
101+ cp -r /opt/solr/server/solr/configsets/oai/* oai
102+ precreate-core search /opt/solr/server/solr/configsets/search
103+ cp -r /opt/solr/server/solr/configsets/search/* search
104+ precreate-core statistics /opt/solr/server/solr/configsets/statistics
105+ cp -r /opt/solr/server/solr/configsets/statistics/* statistics
106+ precreate-core qaevent /opt/solr/server/solr/configsets/qaevent
107+ cp -r /opt/solr/server/solr/configsets/qaevent/* qaevent
110108 exec solr -f
111109volumes :
112110 assetstore :
113111 pgdata :
114112 solr_data :
115- # Special volume used to share Solr configs from 'dspace' to 'dspacesolr' container (see above)
116- solr_configs:
0 commit comments