Add Traefik dashboard toggle

This commit is contained in:
Kris Lamoureux 2020-07-11 04:31:34 -04:00
parent d851c852d6
commit 8654778724
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
3 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@
docker_user: vagrant
# traefik
traefik_dashboard: true
traefik_domain: traefik.vm.krislamo.org
traefik_auth: admin:$apr1$T1l.BCFz$Jyg8msXYEAUi3LLH39I9d1 # admin:admin

View File

@ -1,5 +1,6 @@
traefik_name: traefik
traefik_version: latest
traefik_dashboard: false
traefik_options:
- "--entrypoints.web.address=:80"
- "--api.dashboard=true"

View File

@ -25,6 +25,6 @@
traefik.http.routers.traefik.middlewares: "auth@docker"
traefik.http.routers.traefik.service: "api@internal"
traefik.docker.network: traefik
traefik.enable: "true"
traefik.enable: "{{ traefik_dashboard | string }}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock