Docker with --web.config.file

Hello Support

Please provide a example of docker prometheus image with --web.config.file flag. I have tried various options but no luck.

Thanks and Regards
Thulsi Doss Krishnan

Answering myself , this tech note /article was GOD sent though it uses non docker approach.

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-install-prometheus

so i was able to successfully pass the --web.config.file flag as in like this command

sudo -u prometheus /usr/local/bin/prometheus --config.file /etc/prometheus/prometheus.yml --storage.tsdb.path /var/lib/prometheus --web.console.templates=/etc/prometheus/consoles --web.console.libraries=/etc/prometheus/console_libraries –web.config.file=/etc/prometheus/web-config.yml

Thanks and Regards
Thulsi Doss Krishnan

Another source of luck ,thanks Muneeb Shaikh !

docker run -d --name prometheus -p 9090:9090 -v /home/ec2-user/prometheus_graphana/prometheus.yml:/etc/prometheus/prometheus.yml -v /home/ec2-user/prometheus_graphana/web-config.yml:/etc/prometheus/web-config.yml prom/prometheus –web.config.file=/etc/prometheus/web-config.yml

the above command works

Thanks and Regards
Thulsi Doss Krishnan