I am specifying PORT 80
in Spring boot application.properties
like this
server.port=80
So when running on localhost, this runs on port 80
Now I need to run it in a docker container and I did some hit and trial on the port mapping.
docker run -d -p 80:8080 DOCKERHUB_REPO/DOCKER_IMAGE
Then I did
docker run -d -p 80:80 DOCKERHUB_REPO/DOCKER_IMAGE
None of these worked. How should I proceed? Any help would be highly appreciated. Thanks