I'm new to Docker. I just learned it for 1 week. It really a perfect tool for deploying. I have some stuck with it too. I've created 3 containers as you see below:
(1) 0.0.0.0:3000->3000/tcp
(2) 0.0.0.0:5000->3000/tcp
(3) 0.0.0.0:4000->5000/tcp
So, the container's port is the port that I defined in my "index file" ( const port = 3000). What I'm going to ask here is why the container's port is used instead "EXPOSE" port in Dockerfile?
Thanks for any explanation.