outposts: don't map port 9300 on docker, only expose port

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-09-21 21:40:08 +02:00
parent 0aec504170
commit ae07f13a87
4 changed files with 4 additions and 2 deletions

View file

@ -12,5 +12,4 @@ class LDAPDockerController(DockerController):
self.deployment_ports = [ self.deployment_ports = [
DeploymentPort(389, "ldap", "tcp", 3389), DeploymentPort(389, "ldap", "tcp", 3389),
DeploymentPort(636, "ldaps", "tcp", 6636), DeploymentPort(636, "ldaps", "tcp", 6636),
DeploymentPort(9300, "http-metrics", "tcp", 9300),
] ]

View file

@ -14,7 +14,6 @@ class ProxyDockerController(DockerController):
super().__init__(outpost, connection) super().__init__(outpost, connection)
self.deployment_ports = [ self.deployment_ports = [
DeploymentPort(9000, "http", "tcp"), DeploymentPort(9000, "http", "tcp"),
DeploymentPort(9300, "http-metrics", "tcp"),
DeploymentPort(9443, "https", "tcp"), DeploymentPort(9443, "https", "tcp"),
] ]

View file

@ -17,4 +17,6 @@ COPY --from=builder /go/ldap /
HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:9300/akprox/ping" ] HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:9300/akprox/ping" ]
EXPOSE 3389 6636 9300
ENTRYPOINT ["/ldap"] ENTRYPOINT ["/ldap"]

View file

@ -29,4 +29,6 @@ COPY --from=builder /go/proxy /
HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:9300/akprox/ping" ] HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:9300/akprox/ping" ]
EXPOSE 9000 9300 9443
ENTRYPOINT ["/proxy"] ENTRYPOINT ["/proxy"]