dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Exposing port has no effect

Open icebob opened this issue 1 year ago • 4 comments

Hello again,

I've started my own container which expose the port 3000 in the container. I would like to expose it as 3001 without domains. I tried it within the Application Ports, but it has no effect any settings:

image

docker ps output:

CONTAINER ID   IMAGE                          COMMAND                  CREATED          STATUS          PORTS                                                                                                                 NAMES
cf5170d050d9   registry.q:5000/qnet7:latest   "./bin/application-s…"   11 seconds ago   Up 9 seconds    3000/tcp, 4000/tcp, 8000/tcp                                                                                          app-generate-redundant-feed-poiep9.1.vkrlsh7w1g8pptyjcsz5wwq9e

May I have the wrong configuration somewhere?

Thanks in advance!

icebob avatar May 03 '24 09:05 icebob

Hey @icebob.

I tried the same config, and have you redeploy your app? in order to apply this changes is required to redeploy, i tested and is working now, maybe I should add a alert there when you add some port redeploy the app to take the effect!

Screenshot 2024-05-03 at 10 26 21 AM image

Siumauricio avatar May 03 '24 16:05 Siumauricio

Yes, I tried the redeploy, but it had no effect. However, yeah would be good a warning there,

Next week, I will try it again.

icebob avatar May 03 '24 16:05 icebob

@icebob another question are you deploying a custom docker registry?

Siumauricio avatar May 03 '24 16:05 Siumauricio

I deployed a custom docker image from my registry.

icebob avatar May 03 '24 19:05 icebob

#29

Siumauricio avatar May 07 '24 04:05 Siumauricio

It's different from #30. In #30 I wanted to expose the Dokploy admin site port on different port instead of 3000.

In this ticket I wanted to expose the started app port to the host.

icebob avatar May 07 '24 07:05 icebob

Was this fixed? I'm also unable to map ports

ericaprieto avatar Sep 03 '24 20:09 ericaprieto

@ericaprieto Create a minimal reproduce example to test this

Siumauricio avatar Sep 03 '24 22:09 Siumauricio