Grafana image in Docker container. Can I dynamically change the .ini file

We are working on a solution whereby we have a Grafana image and and InfluxDB image running in a Docker container. We are using Azure AD for authentication to the Grafana dashboard created. Each of these dashboards are created in an individual stack. So, Joe deploys his stack and it produces a dashboard at https://joe.grafana.company.com. Sue does the same thing and gets her dashboard at https://sue.grafana.company.com.

Now, we can use Azure AD’s reply URL of https://*.grafana.company.com and it works fine for Joe. But, because the grafana.ini parameter of root_url needs to match the reply url in AD when Sue deploys her stack and clicks on the “Authenticate with Azure AD” button, it authenticates her then fails because it pulls up the Grafana image that has a root_url of https://joe.grafana.company.com.

So it appears we need to somehow have the ini file modified at deploy time with stack name (Joe or Sue or whoever) being used. As I write this it does seem like this might be a question put elsewhere, but somebody here might have run into this, so what the heck.

Disregard, figured it out.