Created
August 4, 2017 20:48
-
-
Save shin-/2da175c75a4724f7fddaac04f0532c72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-2:/opt/solr | |
volumes: | |
data-solr-2: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-compose up | |
docker-compose -f docker-compose.yml -f docker-compose-migration.yml run solr6 <indexing-job> | |
# Replace configuration of `solr` service with `solr6`'s, add `data-solr-2` to volumes in `docker-compose.yml` | |
docker-compose up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment