# Starting with ELK

**URL:** <https://discuss.elastic.co/t/starting-with-elk/251885>\
**Category:** Elasticsearch\
**Created:** [October 13, 2020, 10:08am UTC](https://discuss.elastic.co/t/starting-with-elk/251885 "2020-10-13T10:08:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![riosdfr](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@riosdfr](https://discuss.elastic.co/u/riosdfr)\
**Post date:** [October 13, 2020, 10:08am UTC](https://discuss.elastic.co/t/starting-with-elk/251885/1 "2020-10-13T10:08:06Z")

</div>

Dear All,

I am completely new to ELK and following some help I created a docker-compose.yml file in order to run it under Docker. Inside this file I configured a elasticsearch service and kibana, but accessing kibana is giving m problems "Login is currently disabled"

I have tried with xpack.authentication.enabled to false but every time that I change it in the yml file, docker console complaints that the compose file is invalid because of the config option.

Could anyone help me?  
Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 13, 2020, 1:40pm UTC](https://discuss.elastic.co/t/starting-with-elk/251885/2 "2020-10-13T13:40:12Z")

</div>

Welcome!

Here is how I'm setting that with docker compose ( `docker-compose.yml`):

```auto
---
version: '3'
services:

  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:$ELASTIC_VERSION
    environment:
      - bootstrap.memory_lock=true
      - discovery.type=single-node
      - ELASTIC_PASSWORD=$ELASTIC_PASSWORD
      - xpack.security.enabled=$ELASTIC_SECURITY
    ulimits:
      memlock:
        soft: -1
        hard: -1
    ports:
      - 9200:9200
    networks: ['stack']

  kibana:
    image: docker.elastic.co/kibana/kibana:$ELASTIC_VERSION
    environment:
      - ELASTICSEARCH_USERNAME=elastic
      - ELASTICSEARCH_PASSWORD=$ELASTIC_PASSWORD
    ports: ['5601:5601']
    networks: ['stack']
    links: ['elasticsearch']
    depends_on: ['elasticsearch']

networks:
  stack: {}

```

`.env` file is:

```auto
ELASTIC_VERSION=7.9.2
ELASTIC_SECURITY=true
ELASTIC_PASSWORD=changeme

```

---

<div class="post-metadata">

**Author:** ![riosdfr](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@riosdfr](https://discuss.elastic.co/u/riosdfr)\
**Post date:** [October 13, 2020, 1:52pm UTC](https://discuss.elastic.co/t/starting-with-elk/251885/3 "2020-10-13T13:52:09Z")

</div>

Thanks a lot. I will try it immediately!

---

<div class="post-metadata">

**Author:** ![riosdfr](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@riosdfr](https://discuss.elastic.co/u/riosdfr)\
**Post date:** [October 13, 2020, 2:00pm UTC](https://discuss.elastic.co/t/starting-with-elk/251885/4 "2020-10-13T14:00:25Z")

</div>

No success so far. I post here my docker-compose.yml, in case anyone can see something that completely escapes from my understanding.

version: '3.8'  
services:  
es01:  
image: [docker.elastic.co/elasticsearch/elasticsearch:6.1.0](http://docker.elastic.co/elasticsearch/elasticsearch:6.1.0)  
container\_name: es01  
environment:  
- node.name=es01  
- cluster.name=drmkc-docker-cluster  
- discovery.type=single-node  
- bootstrap.memory\_lock=false  
- "ES\_JAVA\_OPTS=-Xms1g -Xmx1g"  
- path.repo=/usr/share/elasticsearch/backup  
- path.logs=/usr/share/elasticsearch/logs  
- ELASTIC\_PASSWORD=111111  
- xpack.security.enabled=true  
ulimits:  
memlock:  
soft: -1  
hard: -1  
volumes:  
- type: bind  
source: C:\Work\Elasticsearch-docker\data-es01  
target: /usr/share/elasticsearch/data  
- type : bind  
source: C:\Work\Elasticsearch-docker\_backup  
target: /usr/share/elasticsearch/backup  
- type : bind  
source: C:\Work\Elasticsearch-docker\logs-es01  
target: /usr/share/elasticsearch/logs  
ports:  
- 9200:9200  
networks:  
- elastic

kibana:  
container\_name: kibana  
image: [docker.elastic.co/kibana/kibana:6.1.0](http://docker.elastic.co/kibana/kibana:6.1.0)  
restart: always  
environment:  
- ELASTICSEARCH\_HOSTS=http://es01:9200  
ports:  
- 5601:5601  
depends\_on:  
- es01

networks:  
elastic:  
driver: bridge

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 13, 2020, 2:31pm UTC](https://discuss.elastic.co/t/starting-with-elk/251885/5 "2020-10-13T14:31:31Z")

</div>

Why are you using such an old version? Why not use the latest version if you just starting out?

---

<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:** [November 10, 2020, 2:31pm UTC](https://discuss.elastic.co/t/starting-with-elk/251885/6 "2020-11-10T14:31:33Z")

</div>

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