Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AndrewGearhart/d2003032f868d2e1f769babd031506f2 to your computer and use it in GitHub Desktop.
Save AndrewGearhart/d2003032f868d2e1f769babd031506f2 to your computer and use it in GitHub Desktop.
version: '2'
services:
solr6:
image: solr:6.6
volumes:
- ./docker/solr/schema.xml:/opt/solr/example/solr/collection1/conf/schema.xml:Z
- ./docker/solr/solrconfig.xml:/opt/solr/example/solr/collection1/conf/solrconfig.xml:Z
- data-solr:/opt/solr
volumes:
data-solr-2:
version: '2'
services:
rdbms:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=openoni
- MYSQL_USER=openoni
- MYSQL_PASSWORD=openoni
volumes:
- ./conf/mysql/:/etc/mysql/conf.d:Z
- data-rdbms:/var/lib/mysql
ports:
- "$RDBMSPORT:3306"
solr:
image: makuk66/docker-solr:4.10.4
volumes:
- ./docker/solr/schema.xml:/opt/solr/example/solr/collection1/conf/schema.xml:Z
- ./docker/solr/solrconfig.xml:/opt/solr/example/solr/collection1/conf/solrconfig.xml:Z
- data-solr:/opt/solr
rais:
image: uolibraries/rais:2.8.0
environment:
- RAIS_IIIFURL=$APP_URL:$HTTPPORT/images/iiif
- RAIS_TILECACHELEN=250
volumes:
- ./docker/data/batches:/var/local/images:z
web:
build:
context: ./docker
dockerfile: Dockerfile-dev
volumes:
- ./:/opt/openoni:Z
- ./docker/data:/opt/openoni/data:z
ports:
- "$HTTPPORT:80"
depends_on:
- rdbms
links:
- rdbms
- solr
- rais
environment:
- APP_URL
- HTTPPORT
volumes:
data-rdbms: {}
data-solr: {}
version: '2'
services:
rdbms:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=openoni
- MYSQL_USER=openoni
- MYSQL_PASSWORD=openoni
volumes:
- ./conf/mysql/:/etc/mysql/conf.d:Z
- data-rdbms:/var/lib/mysql
ports:
- "$RDBMSPORT:3306"
solr:
image: solr:6.6
volumes:
- ./docker/solr/:/tmp/solr:Z
- data-solr:/opt/solr
entrypoint:
- docker-entrypoint.sh
- /tmp/solr/precreate
ports:
- "$SOLRPORT:8983"
rais:
image: uolibraries/rais:2.8.0
environment:
- RAIS_IIIFURL=$APP_URL:$HTTPPORT/images/iiif
- RAIS_TILECACHELEN=250
volumes:
- ./docker/data/batches:/var/local/images:z
web:
build:
context: ./docker
dockerfile: Dockerfile-dev
volumes:
- ./:/opt/openoni:Z
- ./docker/data:/opt/openoni/data:z
ports:
- "$HTTPPORT:80"
depends_on:
- rdbms
links:
- rdbms
- solr
- rais
environment:
- APP_URL
- HTTPPORT
volumes:
data-rdbms: {}
data-solr: {}
docker-compose up
docker-compose -f docker-compose-solr4.yml -f docker-compose-migration.yml up
# run solr6 <indexing-job>
# Replace configuration of `solr` service with `solr6`'s, add `data-solr-2` to volumes in `docker-compose.yml`
mv docker-compose-solr6.yml docker-compose.yml
docker-compose up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment