Skip to content

Commit

Permalink
Elastic: Added ElasticSearch with plugins, requires custom Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
paales committed Jan 15, 2020
1 parent 57f7e77 commit 18178b5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.mysqldata
.esdata
.idea
19 changes: 11 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,18 @@ services:
ports:
- 6379:6379

# bin/magento config:set --lock-config catalog/search/enable_eav_indexer 0
# bin/magento config:set --lock-config catalog/search/engine [elasticsearch6 OR elasticsuite]
# bin/magento config:set --lock-env catalog/search/elasticsearch6_server_port 9200
# bin/magento config:set --lock-env catalog/search/elasticsearch6_server_hostname localhost
elasticsearch:
build: ./elasticsearch
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./.esdata:/usr/share/elasticsearch/data

# elasticsearch:
# image: mage2click/magento-elasticsearch:6.7.2
# ports:
# - "9200:9200"
# - "9300:9300"
# volumes:
# - esdata:/usr/share/elasticsearch/data
#
# mailhog:
# image: mailhog/mailhog:v1.0.0
# ports:
Expand Down
4 changes: 4 additions & 0 deletions elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM elasticsearch:6.8.6

RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch analysis-icu
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch analysis-phonetic

0 comments on commit 18178b5

Please sign in to comment.