Skip to content

Commit

Permalink
fix port expose with non-standard ports
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Oct 16, 2024
1 parent 9eb96df commit 2ae0b26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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),
},
},
Expand Down

0 comments on commit 2ae0b26

Please sign in to comment.