I am trying to create a docker-compose file with the latest image version of Elasticsearch and Kibana. Even after mentioning the version name in docker-compose.yml, I am noticing that the image version is 7.11.1 for both Kibana and Elasticsearch.
First that compose will not work for 8.X because of the auto security setup you will either need to following the example here or use the docker-compose file I shared at the bottom of this post.
You can use the sample and pare it down to a single node if you like.
Why yours is starting with the wrong version is often because the wrong compose file is being used.
SO typically you can use these types of commands to figure out what is going on.
What is the exact name of your compose file?
What's is the output of docker images docker ps
You can also be very explicit and name the compose file with
docker-compose -f ./compose.yml up
Here is an example of a docker compose without security enabled. Warning this will have no security enabled do not put any sensitive data in it or make it available on the network.
There are some extra stuff in where resource limits etc which you can take out.
compose-8-x-no-security.yml
You can start it with docker-compose -f compose-8-x-no-security.yml up
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.