The Prometheus container is using network of Nginx container and port 9090 is exposed in Nginx container.
For my Nginx config I have the following. I've tried many different config setups but this is the latest. I'm afraid I've been working on this too long and probably overlooking something obvious. I'm also more used to Apache so I'm not totally comfortable with Nginx yet.
http {
upstream prometheus {
server 127.0.0.1:9090;
}
server {
listen 9090;
server_name example-domain.com;
ssl_certificate /etc/nginx/certificate.pem;
ssl_certificate_key /etc/nginx/key.pem;
location / {
proxy_pass http://prometheus;
}
}
}
events {
Anyone else been able to run Prometheus and Nginx in separate docker containers on same machine over HTTPS?
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/85fef5aa-825d-4484-9539-03c0ea1038f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.