Jump to content

Setting and ip address and a port


Recommended Posts

I have created a docker container with a nodejs application inside it. The application listens on port 3000.

In the unraid docker settings I am using br0 as my Network Type to give the container its own IP address. I then want to forward traffic from port 80 to 3000, however, I cannot work out how to do this.

 

If I select bridge mode instead of br0 then the port configuration allows me to set port 80 to forward, however, in br0 mode the container port field is missing. I also tried adding "-p 80:3000" as an extra parameter in the advanced fields. However, this had no effect.

 

Is this possible?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...