Protects dashboard

This commit is contained in:
2020-11-25 16:10:17 +01:00
parent 3178c8fe40
commit 450c9e65f6
4 changed files with 24 additions and 2 deletions

View File

@@ -6,7 +6,6 @@ services:
ports:
- "80:80"
- "443:443"
- "8080:8080"
networks:
- web
volumes:
@@ -14,6 +13,13 @@ services:
- ./conf/traefik.toml:/etc/traefik/traefik.toml:ro
- ./conf/acme.json:/acme.json
- ./conf/custom:/etc/traefik/custom:ro
labels:
- "traefik.http.routers.dashboard.rule=Host(`${HOSTNAME}`)"
- "traefik.http.routers.dashboard.service=api@internal"
- "traefik.http.routers.dashboard.middlewares=auth"
- traefik.http.routers.dashboard.tls=true
- traefik.http.routers.dashboard.tls.certresolver=myresolver
- "traefik.http.middlewares.auth.basicauth.users=${DASHBOARDUSERS}"
networks:
web: