File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -674,6 +674,21 @@ services:
674674 networks :
675675 - frontend
676676 - backend
677+
678+ # ## Solr Container #########################################
679+
680+ solr :
681+ build :
682+ context : ./solr
683+ args :
684+ - SOLR_VERSION=${SOLR_VERSION}
685+ - SOLR_DATAIMPORTHANDLER_MYSQL=${SOLR_DATAIMPORTHANDLER_MYSQL}
686+ volumes :
687+ - ${DATA_SAVE_PATH}/solr:/opt/solr/server/solr/mycores
688+ ports :
689+ - " ${SOLR_PORT}:8983"
690+ networks :
691+ - backend
677692
678693# ## AWS EB-CLI ####
679694 aws :
Original file line number Diff line number Diff line change @@ -323,6 +323,12 @@ CADDY_CUSTOM_CADDYFILE=./caddy/Caddyfile
323323
324324LARAVEL_ECHO_SERVER_PORT=6001
325325
326+ ### SOLR ###############################################################################################################
327+
328+ SOLR_VERSION=5.5
329+ SOLR_PORT=8983
330+ SOLR_DATAIMPORTHANDLER_MYSQL=false
331+
326332### DOCKER-SYNC ################################################################################################
327333
328334# osx: 'native_osx' (default)
Original file line number Diff line number Diff line change 1+ ARG SOLR_VERSION=5.5
2+ FROM solr:${SOLR_VERSION}
3+
4+ ARG SOLR_DATAIMPORTHANDLER_MYSQL=false
5+ ENV SOLR_DATAIMPORTHANDLER_MYSQL ${SOLR_DATAIMPORTHANDLER_MYSQL}
6+
7+ # download mysql connector for dataimporthandler
8+ RUN if [ ${SOLR_DATAIMPORTHANDLER_MYSQL} = true ]; then \
9+ curl -L -o /tmp/mysql_connector.tar.gz "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.45.tar.gz" \
10+ && mkdir /opt/solr/contrib/dataimporthandler/lib \
11+ && tar -zxvf /tmp/mysql_connector.tar.gz -C /opt/solr/contrib/dataimporthandler/lib "mysql-connector-java-5.1.45/mysql-connector-java-5.1.45-bin.jar" --strip-components 1 \
12+ && rm /tmp/mysql_connector.tar.gz \
13+ ;fi
14+
You can’t perform that action at this time.
0 commit comments