hide traefik 8080 port for dashboard behind /traefik/ or /dashboard/ still not pwd protected, but it is only on local net anyway
This commit is contained in:
@@ -5,11 +5,9 @@ services:
|
|||||||
image: "traefik"
|
image: "traefik"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: host
|
network_mode: host
|
||||||
labels:
|
|
||||||
- "com.centurylinklabs.watchtower.enable=true"
|
|
||||||
command:
|
command:
|
||||||
# - "--log.level=DEBUG"
|
# - "--log.level=DEBUG"
|
||||||
- "--api.insecure=true"
|
- "--api.dashboard=true"
|
||||||
- "--providers.docker=true"
|
- "--providers.docker=true"
|
||||||
- "--providers.docker.exposedbydefault=false"
|
- "--providers.docker.exposedbydefault=false"
|
||||||
- "--providers.docker.useBindPortIP=true"
|
- "--providers.docker.useBindPortIP=true"
|
||||||
@@ -20,10 +18,16 @@ services:
|
|||||||
- "--entrypoints.secureweb.address=:443"
|
- "--entrypoints.secureweb.address=:443"
|
||||||
- "--metrics"
|
- "--metrics"
|
||||||
- "--metrics.prometheus.buckets=0.1,0.3,1.2,5.0"
|
- "--metrics.prometheus.buckets=0.1,0.3,1.2,5.0"
|
||||||
|
labels:
|
||||||
|
- "com.centurylinklabs.watchtower.enable=true"
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.dashboard.rule=PathPrefix(`/traefik`) || PathPrefix(`/api`) || PathPrefix(`/dashboard`)"
|
||||||
|
- "traefik.http.routers.dashboard.entrypoints=web"
|
||||||
|
- "traefik.http.services.dashboard.loadbalancer.server.port=8080"
|
||||||
|
- "traefik.http.routers.dashboard.service=api@internal"
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
- "8080:8080"
|
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
- "/srv/docker/container/traefik/:/configuration"
|
- "/srv/docker/container/traefik/:/configuration"
|
||||||
|
|||||||
Reference in New Issue
Block a user