From ae07f13a87904b1ad7555a1254d846d09f238ce9 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 21 Sep 2021 21:40:08 +0200 Subject: [PATCH] outposts: don't map port 9300 on docker, only expose port Signed-off-by: Jens Langhammer --- authentik/providers/ldap/controllers/docker.py | 1 - authentik/providers/proxy/controllers/docker.py | 1 - ldap.Dockerfile | 2 ++ proxy.Dockerfile | 2 ++ 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/authentik/providers/ldap/controllers/docker.py b/authentik/providers/ldap/controllers/docker.py index 95395cecd..27d972917 100644 --- a/authentik/providers/ldap/controllers/docker.py +++ b/authentik/providers/ldap/controllers/docker.py @@ -12,5 +12,4 @@ class LDAPDockerController(DockerController): self.deployment_ports = [ DeploymentPort(389, "ldap", "tcp", 3389), DeploymentPort(636, "ldaps", "tcp", 6636), - DeploymentPort(9300, "http-metrics", "tcp", 9300), ] diff --git a/authentik/providers/proxy/controllers/docker.py b/authentik/providers/proxy/controllers/docker.py index dfed9ff09..9047c612d 100644 --- a/authentik/providers/proxy/controllers/docker.py +++ b/authentik/providers/proxy/controllers/docker.py @@ -14,7 +14,6 @@ class ProxyDockerController(DockerController): super().__init__(outpost, connection) self.deployment_ports = [ DeploymentPort(9000, "http", "tcp"), - DeploymentPort(9300, "http-metrics", "tcp"), DeploymentPort(9443, "https", "tcp"), ] diff --git a/ldap.Dockerfile b/ldap.Dockerfile index 3ccd195ef..cbd80d273 100644 --- a/ldap.Dockerfile +++ b/ldap.Dockerfile @@ -17,4 +17,6 @@ COPY --from=builder /go/ldap / HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:9300/akprox/ping" ] +EXPOSE 3389 6636 9300 + ENTRYPOINT ["/ldap"] diff --git a/proxy.Dockerfile b/proxy.Dockerfile index 1fab63371..25fee93fe 100644 --- a/proxy.Dockerfile +++ b/proxy.Dockerfile @@ -29,4 +29,6 @@ COPY --from=builder /go/proxy / HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:9300/akprox/ping" ] +EXPOSE 9000 9300 9443 + ENTRYPOINT ["/proxy"]