title: How to run docker on port 8080 without docker -p option , but from dockerfile or dockercompose?
body: <p>i know when we give the -p option with docker run command like <strong>docker run -p 8080:8080 <em>dockerimage</em></strong> , it will run on docker port 8080... but i want to write the docker run command with just container ID without -p option... like docker run imagename (without specifying port name)</p>
  <p>if i write <strong>EXPOSE 8080/tcp</strong> in dockerFile , then when i run docker , it just opens port Exposed in dockerfile, but i want to make the docker run on specific port (not port 80) . May be docker-compose will help me achieve it ?</p>
  <p>Please guide.</p>