File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -678,6 +678,21 @@ services:
678678 networks :
679679 - frontend
680680 - backend
681+
682+ # ## Solr Container #########################################
683+
684+ solr :
685+ build :
686+ context : ./solr
687+ args :
688+ - SOLR_VERSION=${SOLR_VERSION}
689+ - SOLR_DATAIMPORTHANDLER_MYSQL=${SOLR_DATAIMPORTHANDLER_MYSQL}
690+ volumes :
691+ - ${DATA_SAVE_PATH}/solr:/opt/solr/server/solr/mycores
692+ ports :
693+ - " ${SOLR_PORT}:8983"
694+ networks :
695+ - backend
681696
682697# ## AWS EB-CLI ####
683698 aws :
Original file line number Diff line number Diff line change @@ -327,6 +327,12 @@ CADDY_CUSTOM_CADDYFILE=./caddy/Caddyfile
327327
328328LARAVEL_ECHO_SERVER_PORT=6001
329329
330+ ### SOLR ###############################################################################################################
331+
332+ SOLR_VERSION=5.5
333+ SOLR_PORT=8983
334+ SOLR_DATAIMPORTHANDLER_MYSQL=false
335+
330336### DOCKER-SYNC ################################################################################################
331337
332338# 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