mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
set exposedByDefault to false in traefik to only expose docker containers that are enabled by label
This commit is contained in:
@@ -12,6 +12,7 @@ services:
|
||||
- --entrypoints.https.address=:443
|
||||
{{ end }}
|
||||
- --providers.docker
|
||||
- --providers.docker.exposedByDefault=false
|
||||
- --api={{ $.TRAEFIK_API_ENABLED }}
|
||||
- --api.dashboard={{ $.TRAEFIK_DASHBOARD_ENABLED }}
|
||||
|
||||
@@ -33,6 +34,7 @@ services:
|
||||
|
||||
{{ if eq $.TRAEFIK_API_ENABLED "true" }}
|
||||
# Dashboard
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.api.rule=Host(`{{ $.TRAEFIK_API_VHOST }}`)"
|
||||
- "traefik.http.routers.api.service=api@internal"
|
||||
- "traefik.http.routers.api.entrypoints={{ if $.TRAEFIK_LETSENCRYPT_EMAIL }}https{{ else }}http{{ end }}"
|
||||
|
||||
Reference in New Issue
Block a user