Skip to content

Commit

Permalink
Update traefik to v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Sep 18, 2019
1 parent ab50e07 commit f3eb7c4
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions examples/grafana/docker-traefik-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@ networks:

services:
traefik:
image: traefik:v1.7.12-alpine
image: traefik:v2.0.0
command:
- "--logLevel=DEBUG"
- "--api"
- "--metrics"
- "--log.level=DEBUG"
- "--api=true"
- "--api.insecure=true"
- "--metrics.prometheus=true"
- "--metrics.prometheus.buckets=0.1,0.3,1.2,5.0"
- "--docker"
- "--docker.swarmMode"
- "--docker.domain=docker.localhost"
- "--docker.watch"
- "--metrics.prometheus.addServicesLabels=true"
- "--providers.docker=true"
- "--providers.docker.swarmmode=true"
- "--providers.docker.watch=true"
networks:
- traefik
- monitor-net
Expand Down Expand Up @@ -186,9 +187,8 @@ services:
constraints:
- node.role==manager
labels:
- "traefik.frontend.rule=Host:prometheus.localhost"
- "traefik.backend=prometheus"
- "traefik.port=9090"
- "traefik.http.routers.prometheus.rule=Host(`prometheus.localhost`)"
- "traefik.http.services.prometheus.loadbalancer.server.port=9090"
- "traefik.docker.network=traefik"
restart_policy:
condition: on-failure
Expand Down Expand Up @@ -264,9 +264,8 @@ services:
constraints:
- node.role==manager
labels:
- "traefik.frontend.rule=Host:grafana.localhost"
- "traefik.backend=grafana"
- "traefik.port=3000"
- "traefik.http.routers.grafana.rule=Host(`grafana.localhost`)"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
- "traefik.docker.network=traefik"
restart_policy:
condition: on-failure

0 comments on commit f3eb7c4

Please sign in to comment.