# Elastic seach is not accessiblle on host machine

**URL:** <https://discuss.elastic.co/t/elastic-seach-is-not-accessiblle-on-host-machine/199932>\
**Category:** Elastic Search\
**Tags:** docker, elastic-app-search\
**Created:** [September 18, 2019, 7:27am UTC](https://discuss.elastic.co/t/elastic-seach-is-not-accessiblle-on-host-machine/199932 "2019-09-18T07:27:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranjeet.tiwari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ranjeet.tiwari/32/55160_2.png) [@ranjeet.tiwari](https://discuss.elastic.co/u/ranjeet.tiwari)\
**Post date:** [September 18, 2019, 7:27am UTC](https://discuss.elastic.co/t/elastic-seach-is-not-accessiblle-on-host-machine/199932/1 "2019-09-18T07:27:12Z")

</div>

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](http://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](http://docker.elastic.co/app-search/app-search:7.3.0)  
environment:  
- "elasticsearch.host=[http://elasticsearch:9200](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](https://swiftype.com/documentation/app-search/self-managed/installation#docker)

I am able to access app search from host machine ([http://locahhost:3002](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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 16, 2019, 7:27am UTC](https://discuss.elastic.co/t/elastic-seach-is-not-accessiblle-on-host-machine/199932/2 "2019-10-16T07:27:21Z")

</div>

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