Browse Source

Initial config & image for OpenSearch

Mark Shust 3 years ago
parent
commit
76d4ea0d4f
3 changed files with 11 additions and 3 deletions
  1. 3 3
      compose/docker-compose.yml
  2. 3 0
      compose/env/opensearch.env
  3. 5 0
      images/opensearch/Dockerfile

+ 3 - 3
compose/docker-compose.yml

@@ -31,7 +31,7 @@ services:
       - "phpfpm:172.17.0.1"
       - "db:172.17.0.1"
       - "redis:172.17.0.1"
-      - "elasticsearch:172.17.0.1"
+      - "opensearch:172.17.0.1"
       - "rabbitmq:172.17.0.1"
       ## Selenium support, replace "magento.test" with URL of your site
       - "magento.test:172.17.0.1"
@@ -58,8 +58,8 @@ services:
       - "6379:6379"
     extra_hosts: *appextrahosts
 
-  elasticsearch:
-    image: markoshust/magento-elasticsearch:7.9.3-1
+  opensearch:
+    image: markoshust/magento-opensearch:1.2.4-0
     ports:
       - "9200:9200"
       - "9300:9300"

+ 3 - 0
compose/env/opensearch.env

@@ -0,0 +1,3 @@
+OPENSEARCH_HOST=opensearch
+OPENSEARCH_PORT=9200
+OPENSEARCH_HEALTHCHECK_TIMEOUT=100

+ 5 - 0
images/opensearch/Dockerfile

@@ -0,0 +1,5 @@
+FROM opensearchproject/opensearch:1.2.4
+
+RUN /usr/share/opensearch/bin/opensearch-plugin install --batch \
+  analysis-icu \
+  analysis-phonetic