# Multiple user setup with elasticsearch docker-compose

**URL:** <https://discuss.elastic.co/t/multiple-user-setup-with-elasticsearch-docker-compose/246419>\
**Category:** Elasticsearch\
**Created:** [August 26, 2020, 9:10am UTC](https://discuss.elastic.co/t/multiple-user-setup-with-elasticsearch-docker-compose/246419 "2020-08-26T09:10:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gkman/32/74525_2.png) [@gkman](https://discuss.elastic.co/u/gkman)\
**Post date:** [August 26, 2020, 9:10am UTC](https://discuss.elastic.co/t/multiple-user-setup-with-elasticsearch-docker-compose/246419/1 "2020-08-26T09:10:49Z")

</div>

Hi,

I am deploying ELK stack using docker compose. I will be using x-pack security features (users + tls)

I have found a few examples of how to set a single user in elk ([How to set passwords for built-in users with docker-compose setup](https://discuss.elastic.co/t/how-to-set-passwords-for-built-in-users-with-docker-compose-setup/198096), [Set Password and user with Docker-compose](https://discuss.elastic.co/t/set-password-and-user-with-docker-compose/225075), [https://towardsdatascience.com/running-securing-and-deploying-elastic-stack-on-docker-f1a8ebf1dc5b](https://towardsdatascience.com/running-securing-and-deploying-elastic-stack-on-docker-f1a8ebf1dc5b))

However all examples use one user for the entire setup.  
I suppose this user being created during setup is an admin user, however I would like to setup three different users. one admin user, one user with write permissions (for logstash) and one user for kibana.

I realize that setting permissions will probably not be supported by docker-compose options. However If I can initiate the three different users at setup, I can immediately run a script that will modify their permissions accordingly (or just use the different built-in users of elasticsearch that already have their correct permissions set)

---

<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:** [September 23, 2020, 9:10am UTC](https://discuss.elastic.co/t/multiple-user-setup-with-elasticsearch-docker-compose/246419/2 "2020-09-23T09:10:51Z")

</div>

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