# Elastic Search with Docker compose

**URL:** <https://discuss.elastic.co/t/elastic-search-with-docker-compose/247172>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [September 2, 2020, 6:00am UTC](https://discuss.elastic.co/t/elastic-search-with-docker-compose/247172 "2020-09-02T06:00:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nages](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nages/32/46943_2.png) [@nages](https://discuss.elastic.co/u/nages)\
**Post date:** [September 2, 2020, 6:00am UTC](https://discuss.elastic.co/t/elastic-search-with-docker-compose/247172/1 "2020-09-02T06:00:43Z")

</div>

I tried to bring up ES cluster with one node by ingesting some variables,it seems all the variables are not ingested. Is it issue with the syntax or that is how it works ?

Here is the compose file ( stripped down version)

```
version: '3.8'
services:
  elasticsearch1:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.8.12
    container_name: elasticsearch1
    environment:
      - cluster.name=docker-cluster
      - node.name=elasticsearch1

```

However, i see only `cluster.name` is ingested.

```
training@training-virtualbox:~/playArea$ docker container exec -it elasticsearch1 sh
sh-4.2# cd config
sh-4.2# cat elasticsearch.
elasticsearch.keystore elasticsearch.yml       
sh-4.2# cat elasticsearch.yml 
cluster.name: "docker-cluster"
network.host: 0.0.0.0
```

---

<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:** [September 30, 2020, 6:00am UTC](https://discuss.elastic.co/t/elastic-search-with-docker-compose/247172/2 "2020-09-30T06:00:50Z")

</div>

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