ufw-docker icon indicating copy to clipboard operation
ufw-docker copied to clipboard

Publish multiple docker with same port

Open andreapx opened this issue 4 years ago • 2 comments

Hi, I've followed you rinstruction and I was able to block all the port except the ones I needed, but now...I need to expose a second webserver on a different port, how do I do this?

andreapx avatar Feb 16 '21 09:02 andreapx

Hi, using the script, like

ufw-docker allow your-second-web-server 8080/tcp

chaifeng avatar Apr 01 '21 09:04 chaifeng

Normally i could do this by mapping the containerport to a different host port. Like 8081:8080. With your solution this is not possible right? So all containers running native on 8080 have to use a different subpath or domain right?!

Gadnief avatar May 05 '21 10:05 Gadnief