Hide unexposed containers

This commit is contained in:
2020-11-25 16:22:29 +01:00
parent 450c9e65f6
commit c9a39507fb
3 changed files with 8 additions and 5 deletions

View File

@@ -14,12 +14,13 @@ services:
- ./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.enable=true
- 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}"
- traefik.http.middlewares.auth.basicauth.users=${DASHBOARDUSERS}
networks:
web: