From 19510fdf30cf76baa0af97136a596c1e1c71cefa Mon Sep 17 00:00:00 2001 From: digikin Date: Mon, 24 Jun 2019 20:28:55 -0400 Subject: [PATCH] working on the toml --- README.md | 3 +-- docker-compose.yml | 3 ++- traefik.toml | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 237377f..29d0da2 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,6 @@ services: image: quay.io/influxdb/influxdb:2.0.0-alpha ports: - 9999:9999 - labels: - - "traefik.http.routers.influxdb.rule=Host('influx.localhost')" ``` ## Traefik.toml ``` @@ -42,6 +40,7 @@ entryPoint = "traefik" debug = true ``` This configuration is a basic setup to expose the dashboard. +Check it out. ## Compose up Run the command: diff --git a/docker-compose.yml b/docker-compose.yml index 0d83b3b..eb5b5c9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,4 +17,5 @@ services: ports: - 9999:9999 labels: - - "traefik.http.routers.influxdb.rule=Host('influx.localhost')" + - "traefik.enable=true" + - "traefik.frontend.rule=Host:influx.localhost" \ No newline at end of file diff --git a/traefik.toml b/traefik.toml index daf111b..bd13970 100644 --- a/traefik.toml +++ b/traefik.toml @@ -6,6 +6,14 @@ exposedByDefault = true usebindportip = true swarmMode = false network = "web" +entryPoints.dash] +address=":8080" +[entryPoints.dash.auth] +[entryPoints.dash.auth.basic] + users = [ + "hakase:$apr1$hEgpZUN2$OYG3KwpzI3T1FqIg9LIbi.", + ] + [api] dashboard = true entryPoint = "traefik"