D
Dokploy•2w ago
Bootta

Expose second container port?

Hi, If created app from docker image and i need 2 ports from container to be exposed(3000 and 5000). I created domain mydomain.com and it using 3000 port. Is it possible to expose on that domain second port 5000? So i can access mydomain.com:5000. I tried to expose port using Advanced -> Ports section but no luck.
5 Replies
Bootta
BoottaOP•2w ago
@Siumauricio can you help?
neva
neva•7d ago
On the docker compose you can list the ports: ports: - 3000 - 5000 And on the domains tab, add another domain pointing to port 5000, and access it normally via http, without the need to specify the port.
Bootta
BoottaOP•7d ago
Thx for help. So i need another domain. I thought that i can use only 1 domain.
neva
neva•6d ago
You can use the same domain + another port, but in that case you would need to change traefik configuration so it can listen on that other port too. I'm using dokploy to test many apps, here I've made a wildcard DNS entry *.app.mydomain.com pointing to my dokploy server, so it's easier to add new apps without having to add a new DNS entry.
AlexN
AlexN•6d ago
🤩

Did you find this page helpful?