#configuraiton
http:
services:
jaeger-web:
loadBalancer:
passHostHeader: true
servers:
- url: "http://jaeger.matinet:16686/"
prometheus-web:
loadBalancer:
passHostHeader: true
servers:
- url: "http://prometheus.matinet:9090/"
portainer-web:
loadBalancer:
passHostHeader: false
servers:
- url: "http://10.0.0.2:9000"
vault-web:
loadBalancer:
passHostHeader: false
servers:
- url: "http://10.0.0.2:8200"
grafana-web:
loadBalancer:
passHostHeader: true
servers:
- url: "http://grafana.matinet:3000/"
routers:
catalog-router:
service: fdc@docker
rule: "PathPrefix(`/catalog/api/v1/`)"
middlewares:
- "afip-auth"
jaeger-router:
service: jaeger-web
rule: "Host(`jaeger.docker.localhost`)"
prometheus-router:
service: prometheus-web
rule: "Host(`prometheus.docker.localhost`)"
grafana-router:
service: grafana-web
rule: "Host(`grafana.docker.localhost`)"
portainer-router:
service: portainer-web
rule: "PathPrefix(`/portainer`)"
middlewares:
- "strippers"
vault-router:
service: vault@docker
rule: "PathPrefix(`/vault`)"
middlewares:
- "strippers"
middlewares:
strippers:
stripPrefix:
prefixes:
- "/portainer"
- "/vault"
afip-auth:
forwardAuth:
address: "http://forwardauth-example.matinet:3000/"
trustForwardHeader: true
## traefik.yml
# Docker configuration backend
providers:
docker:
network: matinet
endpoint: "unix:///var/run/docker.sock"
#defaultRule: "Host(`{{ trimPrefix `/` .Name }}.docker.localhost`)"
file:
filename: /etc/traefik/dynamic.yml
watch: true
# API and dashboard configuration
api:
insecure: true
# Configuracion de tracing
tracing:
jaeger:
samplingServerURL: http://localhost:5778/sampling
gen128Bit: true
# Configuracion de metricas
metrics:
prometheus:
addServicesLabels: true
buckets:
- 0.1
- 0.3
- 1.2
- 5.0