Skip to content

Commit

Permalink
Added Opensearch
Browse files Browse the repository at this point in the history
  • Loading branch information
glo47154 committed Feb 17, 2023
1 parent aa226ae commit 775ab06
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions env/.env.example
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions env/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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://:[email protected]:5900
Expand Down
19 changes: 19 additions & 0 deletions env/additional/opensearch/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 775ab06

Please sign in to comment.