Created
August 18, 2025 13:58
-
-
Save Tuhin-thinks/a3e27508a91bfa79a2f9813c8a39c0fe to your computer and use it in GitHub Desktop.
docker-compose.yaml file to run ES, Kibana v9.0.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:9.0.3 | |
container_name: es_9.0.3 | |
environment: | |
- discovery.type=single-node | |
- xpack.security.enabled=true | |
- ELASTIC_PASSWORD=tuhin190221 | |
ports: | |
- "9200:9200" | |
volumes: | |
- esdata:/usr/share/elasticsearch/data | |
kibana: | |
image: docker.elastic.co/kibana/kibana:9.0.3 | |
container_name: kibana_9.0.3 | |
depends_on: | |
- elasticsearch | |
environment: | |
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200 | |
- ELASTICSEARCH_USERNAME=kibana_system | |
- ELASTICSEARCH_PASSWORD=tuhin190221 | |
- XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY=acdd823e2543f5db19dd646343b2bbf9 | |
ports: | |
- "5601:5601" | |
volumes: | |
- kibana_data:/usr/share/kibana/data | |
volumes: | |
esdata: | |
kibana_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Process to reset the
elasticsearch
user**Open a bash shell inside elasticsearch docker container, and run this command:
(when prompted, set the user password)
Do the similar thing for
kibana_system
userOnce done, you are all set to log in inside the web UI on your http://localhost:5601.
The value for
XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY
is generated by following these steps:(here, elasticsearch.password is the password for user
kibana_system
)