Add user in Grafana Docker

Hi All,

I am using grafana as docker container. After grafana container is up, using the dashboard UI i have added few users with viewer role. When i restart the container the added users are removed and needs to be added again. Is there any way that these users are pre-configured in any of the yaml or config file which is mounted on the docker? so, that irrespective of container restart the users list will be pre-loaded.

Hi @sksyedcr,

Thanks for opening this post.

It should not do that. Could you please check if you have defined the persistent storage in your docker-compose.yml file?

Here is the link to our documentation where it also define and recommends to use persistent storage:

Let us know if this helps.

Thanks Usman, It worked.

1 Like