0

I'm trying to run the docker image of the AWS opendistro elasticsearch on my laptop for tesing

https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker/

When I run it, it expects an HTTPS connection. How do I run it on HTTP?

I'm using this command to run:

docker run -d --name elasticsearch-od -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node"

0

in your docker-compose.yml you need change this parametres:

environment: ELASTICSEARCH_URL: https://odfe-node1:9200 ELASTICSEARCH_HOSTS: https://odfe-node1:9200

For this:

environment: ELASTICSEARCH_URL: http://odfe-node1:9200 ELASTICSEARCH_HOSTS: http://odfe-node1:9200

And after in your file config for elasticsearch put this:

https-enabled = false

Try and enjoy ;)

| improve this answer | |
  • Thanks but I'm not using docker compose, only docker. – Avner Oct 22 at 23:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.