mirror of https://github.com/ekimekim/wubloader
Add nginx service that provides a frontend to all the other services
This allows us to run all the different services and expose all their metrics, all on one port.pull/57/head
parent
a7a54db726
commit
63eb324ba5
@ -0,0 +1,3 @@
|
|||||||
|
# nginx container contains config that exposes all the various services metrics
|
||||||
|
FROM nginx:latest
|
||||||
|
ADD nginx/nginx.conf /etc/nginx/nginx.conf
|
@ -0,0 +1,37 @@
|
|||||||
|
|
||||||
|
worker_processes 1;
|
||||||
|
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
http {
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://restreamer:8000;
|
||||||
|
}
|
||||||
|
location /thrimshim {
|
||||||
|
proxy_pass http://thrimshim:8004;
|
||||||
|
}
|
||||||
|
# Restreamer metrics would be available regardless, this is just for consistency
|
||||||
|
location /metrics/restreamer {
|
||||||
|
proxy_pass http://restreamer:8000/metrics;
|
||||||
|
}
|
||||||
|
location /metrics/downloader {
|
||||||
|
proxy_pass http://downloader:8001/metrics;
|
||||||
|
}
|
||||||
|
location /metrics/backfiller {
|
||||||
|
proxy_pass http://backfiller:8002/metrics;
|
||||||
|
}
|
||||||
|
location /metrics/cutter {
|
||||||
|
proxy_pass http://cutter:8003/metrics;
|
||||||
|
}
|
||||||
|
location /metrics/thrimshim {
|
||||||
|
proxy_pass http://thrimshim:8004/metrics;
|
||||||
|
}
|
||||||
|
location /metrics/sheetsync {
|
||||||
|
proxy_pass http://sheetsync:8005/metrics;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue