From 2ae0b26ac89fe5338f8f26e74303aa8863b1d647 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Wed, 16 Oct 2024 19:18:08 +0200 Subject: [PATCH] fix port expose with non-standard ports --- app/services.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/services.go b/app/services.go index 8afd2825..dc7a7705 100644 --- a/app/services.go +++ b/app/services.go @@ -30,6 +30,9 @@ func (app *App) SetupServices() { Tty: false, User: fmt.Sprintf("%d", os.Getuid()), Env: no_proxy_env, + ExposedPorts: nat.PortSet{ + nat.Port(fmt.Sprintf("%d/udp", app.Config.DockerMinetestPort)): {}, + }, }, DefaultHostConfig: &container.HostConfig{ RestartPolicy: container.RestartPolicy{ @@ -53,7 +56,7 @@ func (app *App) SetupServices() { PortBindings: nat.PortMap{ nat.Port(portbinding): []nat.PortBinding{ { - HostIP: "0.0.0.0", + HostIP: "", HostPort: fmt.Sprintf("%d", app.Config.DockerMinetestPort), }, },