I have installed app search and Elasticsearch using below code (docker-compose up) …
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.0
environment:
- "node.name=es-node"
- "discovery.type=single-node"
- "cluster.name=app-search-docker-cluster"
- "bootstrap.memory_lock=true"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
appsearch:
image: docker.elastic.co/app-search/app-search:7.3.0
environment:
- "elasticsearch.host=http://elasticsearch:9200"
- "allow_es_settings_modification=true"
- "JAVA_OPTS=-Xmx256m"
ports:
- 3002:3002
I referred this from App Search, Self Managed, Installation | Swiftype Documentation
I am able to access app search from host machine (http://locahhost:3002) however Elasticsearch is not accessible on host machine...
Please suggest some of the setting through which I can elasticsearch on host machine.