Set elasticsearch initial password via docker-compose

Can i know, how to set initial password for elasticsearch database using docker-compose

bin/elasticsearch-setup-passwords auto -u "http://192.168.2.120:9200

We can use environment variable however, it will display during docker exec. what are other options to encrypt password

Does this help?

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