How to change root_url at runtime?

Currently Grafana instance reads root_url from defaults.ini and it’s consisting values are hardcoded as ‘http’/‘localhost’/‘3000’, can we override these values?
We are deploying through docker and if it’s possible to set runtime parameter like ‘GF_AUTH_ANONYMOUS_ENABLED’?

From the docs:

All options in the configuration file (listed below) can be overridden using environment variables

so should be: