xxxxxxxxxx
prometheus:
image: prom/prometheus:v2.20.0
command:
- '--web.external-url=/prometheus/'
- '--web.route-prefix=/prometheus/'
# ...
deploy:
labels:
- traefik.frontend.rule=Host:example.com;PathPrefix:/prometheus/
- traefik.port=9090