Prometheus Authentication

Hello,

I’m running prometheus from the “prom/prometheus” docker image using the docker run command, and i would like to know how, and if it is possible, to configure the basic authentication so Prometheus won’t be open to all web.

I tried to pass the argument “-v /etc/prometheus/web-config.yml:/etc/prometheus/web-config.yml” in the command, and also “–web.config.file=/etc/prometheus/web-config.yml” but without success.

Can someone help?