Elastic seach is not accessiblle on host machine

I have installed app search and elastic search 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 https://swiftype.com/documentation/app-search/self-managed/installation#docker

I am able to access app search from host machine (http://locahhost:3002) however elastic search is not accessible on host machine...

Please suggest some of the setting through which I can elasticsearch on host machine.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.