Skip to content

Commit

Permalink
working on the toml
Browse files Browse the repository at this point in the history
  • Loading branch information
digikin committed Jun 25, 2019
1 parent 27b81d2 commit 19510fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
8 changes: 8 additions & 0 deletions traefik.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 19510fd

Please sign in to comment.