# Using ElasticSerach 8 via Docker without certificate

**URL:** <https://discuss.elastic.co/t/using-elasticserach-8-via-docker-without-certificate/303617>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [April 29, 2022, 4:09pm UTC](https://discuss.elastic.co/t/using-elasticserach-8-via-docker-without-certificate/303617 "2022-04-29T16:09:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomTom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomtom/32/3676_2.png) [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Post date:** [April 29, 2022, 4:09pm UTC](https://discuss.elastic.co/t/using-elasticserach-8-via-docker-without-certificate/303617/1 "2022-04-29T16:09:20Z")

</div>

Today my team works with Elasticsearch (6.8) through a Docker machine, connecting via HTTP (php curl), just to test our system and the integration with Elasticsearch.

We tried to use the Elasticsearch 8 image on Docker, but this version requires creating a certificate, accessing via HTTPS, authentication keys, various items.

Is there a way to install version 8 as simply as possible, just so we can test without having to change all our source code?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 30, 2022, 12:38am UTC](https://discuss.elastic.co/t/using-elasticserach-8-via-docker-without-certificate/303617/2 "2022-04-30T00:38:02Z")

</div>

You should be able to add the following settings in the compose file or on the command line ..

```auto
xpack.security.enabled: false
xpack.security.enrollment.enabled: false

```

Of course I now should say... Securing your Elasticsearch is best practice 🙂 ... [there is a full compose](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-compose-file) that does this all in one step..

Note : This worked for me

```auto
--
version: '3'
services:
  elasticsearch:
    container_name: es01
    image: docker.elastic.co/elasticsearch/elasticsearch:${TAG}
    environment: ['ES_JAVA_OPTS=-Xms2g -Xmx2g','bootstrap.memory_lock=true','discovery.type=single-node','xpack.security.enabled=false', 'xpack.security.enrollment.enabled=false']
    ports:
      - 9200:9200
    networks:
      - elastic
    ulimits:
      memlock:
        soft: -1
        hard: -1
      nofile:
        soft: 65536
        hard: 65536

  kibana:
    image: docker.elastic.co/kibana/kibana:${TAG}
    container_name: kib01
    environment:
      XPACK_APM_SERVICEMAPENABLED: "true"
      XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY: aaaaaaaa-c4d3-4a0a-8290-2abcb83ab3aa

    ports:
      - 5601:5601
    networks:
      - elastic

networks:
  elastic:

```

---

<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:** [May 28, 2022, 12:38am UTC](https://discuss.elastic.co/t/using-elasticserach-8-via-docker-without-certificate/303617/3 "2022-05-28T00:38:21Z")

</div>

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