Hi @ngtrthanh,
For docker-compose, you can look at these 2 reference links as they explain well how to use the configuration file.
and
Once you have done it and going to restart your container then use this extra parameter in your command i.e.
docker-compose up -d --force-recreate
Now for the locally installed grafana configuration, the default location is usually /etc/grafana/grafana.ini
and once you change it (remove the “;” as it is a comment).
Then restart the service and then logout from your account and login back as an admin account.
If the changes still do not apply then clean your browser cache and cookies and then try again.
I hope this helps.