@@ -21,13 +21,20 @@ x-app:
2121 - rails_cache:/app/tmp/cache
2222 - ./config/essi_config.docker.yml:/run/secrets/essi_config.yml
2323 depends_on :
24- - redis_jobs
25- - solr
26- - fcrepo
27- - db
28- - minio
29- - cantaloupe
30- - chrome
24+ redis_jobs :
25+ condition : service_started
26+ solr :
27+ condition : service_started
28+ fcrepo :
29+ condition : service_started
30+ minio :
31+ condition : service_started
32+ cantaloupe :
33+ condition : service_started
34+ chrome :
35+ condition : service_started
36+ db :
37+ condition : service_healthy
3138
3239services :
3340 web :
@@ -71,6 +78,8 @@ services:
7178 - ' ./db/50-mysql-create-db.sql:/docker-entrypoint-initdb.d/50-mysql-create-db.sql'
7279 environment :
7380 MYSQL_ROOT_PASSWORD : essi
81+ healthcheck :
82+ test : mysqladmin ping -h 127.0.0.1 -u root --password=$$MYSQL_ROOT_PASSWORD
7483
7584 minio :
7685 image : bitnami/minio:latest
@@ -148,17 +157,15 @@ services:
148157 command : redis-server --maxmemory-policy allkeys-lru --maxmemory 256mb
149158
150159 solr :
151- image : solr:6.6
160+ image : solr:9
152161 ports :
153162 - " 8983:8983"
154163 volumes :
155164 - ' ./solr:/myconfig:delegated'
156- - solr:/opt/solr/server/solr/mycores
157- - ' ./solr/lib/tokenizing-suggest-v1.0.1.jar:/opt/solr/contrib/tokenizing-suggest-v1.0.1.jar'
158165 - ' ./solr/50-precreate-cores.sh:/docker-entrypoint-initdb.d/50-precreate-cores.sh'
159- entrypoint :
160- - docker-entrypoint.sh
161- - solr-foreground
166+ - solr:/var/solr
167+ environment :
168+ - SOLR_MODULES=analysis-extras,extraction
162169
163170 fcrepo :
164171 image : ghcr.io/samvera/fcrepo4:4.7.5
0 commit comments