When I click on an existing docker image on Heroku, Heroku provides an environment variable $PORT
. How to pass this property to Heroku launch instance?
In localhost
this will work:
docker pull swaggerapi/swagger-ui
docker run -p 80:8080 swaggerapi/swagger-ui
On Heroku, I have to do:
docker run -p $PORT:8080 swaggerapi/swagger-ui
Is this possible?
source
share