dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Change default port 3000

Open icebob opened this issue 10 months ago • 5 comments

Hello,

great project. However, how can I change the Dokploy web port 3000 to another one? I tried to find it in "Web server settings" on the site but I didn't find it.

icebob avatar May 03 '24 09:05 icebob

Try to change the env var PORT

jlucaso1 avatar May 05 '24 16:05 jlucaso1

But how, I installed the containers with the curl ....sh | sh command.

icebob avatar May 06 '24 07:05 icebob

What are the reasons you want to change the port?

Siumauricio avatar May 06 '24 18:05 Siumauricio

I would like to use it in localhost for dev tools, but my main project is running on 3000 as well and it causes conflict at port binding.

icebob avatar May 06 '24 18:05 icebob

You have two options.

  1. change the port that you application are using this is more simple.
  2. You don't need to add explicity a port in Ports Section, just simply add a new domain and in the container port set the 3000 port and that's all, you can have any applications running in 3000 port because when you add a domain traefik automatically will redirect to the container, but if you want to use the application without a domain and you want to explicity bind to a port just go to ports and target port set 3000 and published set something like 3001

Siumauricio avatar May 06 '24 18:05 Siumauricio

@icebob Give me more details about this, if you want hit me up on discord and I will be delighted to help you

Siumauricio avatar May 09 '24 02:05 Siumauricio