From 775ab06f6548be6e9abee05270fc52291f97890b Mon Sep 17 00:00:00 2001 From: Adam Wojciechowski Date: Fri, 17 Feb 2023 14:55:13 +0100 Subject: [PATCH] Added Opensearch --- env/.env.example | 1 + env/Makefile | 8 ++++++++ env/additional/opensearch/docker-compose.yaml | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 env/additional/opensearch/docker-compose.yaml diff --git a/env/.env.example b/env/.env.example index 525620c..06e77b1 100644 --- a/env/.env.example +++ b/env/.env.example @@ -1,3 +1,4 @@ MAGENTO_CLOUD_CLI_TOKEN= COMPOSER_AUTH={"http-basic":{"repo.magento.com":{"username":"","password":""}}} M2D_XDEBUG_IDE_KEY=PHPSTORM +M2D_OPENSEARCH_MAX_HEAP_SIZE=512m diff --git a/env/Makefile b/env/Makefile index 082932d..877b376 100644 --- a/env/Makefile +++ b/env/Makefile @@ -133,6 +133,14 @@ logs-elastic7: docker logs -f magento2elastic7 elastic7-stop: cd additional/elasticsearch7 && docker-compose stop && cd - +opensearch: + cd additional/opensearch && docker-compose up -d && cd - + # Web interface: + # http://127.0.0.1:9200 +logs-opensearch: + docker logs -f magento2opensearch +opensearch-stop: + cd additional/opensearch && docker-compose stop && cd - selenium: cd additional/selenium && docker-compose up -d && cd - # VNC open vnc://:secret@127.0.0.1:5900 diff --git a/env/additional/opensearch/docker-compose.yaml b/env/additional/opensearch/docker-compose.yaml new file mode 100644 index 0000000..b935890 --- /dev/null +++ b/env/additional/opensearch/docker-compose.yaml @@ -0,0 +1,19 @@ +version: '3' + +services: + opensearch: + image: opensearchproject/opensearch:1.2.4 + container_name: magento2opensearch + environment: + - "discovery.type=single-node" + - "plugins.security.disabled=true" + - "http.host=0.0.0.0" + - "http.port=9200" + - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx${M2D_OPENSEARCH_MAX_HEAP_SIZE:-512m}" + - "DISABLE_INSTALL_DEMO_CONFIG=true" # disable demo config see https://opensearch.org/docs/latest/opensearch/install/docker-security/ + ports: + - "9200:9200" +networks: + default: + name: env_default + external: true