Add Traefik Board with HttpBasicAuth
This commit is contained in:
parent
bd48a6de4b
commit
3ca68ec3dc
1 changed files with 10 additions and 0 deletions
|
@ -7,6 +7,7 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command:
|
command:
|
||||||
- "--api.insecure=false"
|
- "--api.insecure=false"
|
||||||
|
- "--api.dashboard=true"
|
||||||
- "--providers.docker=true"
|
- "--providers.docker=true"
|
||||||
- "--providers.docker.exposedbydefault=false"
|
- "--providers.docker.exposedbydefault=false"
|
||||||
#- "--log.level=DEBUG"
|
#- "--log.level=DEBUG"
|
||||||
|
@ -29,6 +30,15 @@ services:
|
||||||
- ${VOLUMES_PATH}/letsencrypt:/letsencrypt
|
- ${VOLUMES_PATH}/letsencrypt:/letsencrypt
|
||||||
- $PWD/tls.toml:/etc/traefik/tls.toml
|
- $PWD/tls.toml:/etc/traefik/tls.toml
|
||||||
labels:
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.dashboard.rule=Host(`traefik.${DOMAIN}`)"
|
||||||
|
- "traefik.http.routers.dashboard.service=api@internal"
|
||||||
|
- "traefik.http.routers.dashboard.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.dashboard.tls.certresolver=myresolver"
|
||||||
|
- "traefik.http.routers.gitea.tls.options=intermediate@file"
|
||||||
|
- "traefik.http.routers.dashboard.middlewares=auth"
|
||||||
|
- "traefik.http.middlewares.auth.basicauth.users=${HTPASSWD}"
|
||||||
|
- "traefik.docker.network=web"
|
||||||
- "docker.group=web"
|
- "docker.group=web"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue