Control the "main" exposed port with a $PORT variable #499
erikgaal
started this conversation in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👉 Describe the problem
Deploying any image on Heroku requires you to have the web process listen on a port defined by the
$PORT
environment variable.👥 Problem evidence & reach
Anyone trying to deploy on services like Heroku that need you to run your Docker services on a controlled
$PORT
.🏆 How to solve this problem
Have a way to control the port that the
fpm-apache
,fpm-nginx
andfpm-unit
image variants use to run the main web process.♾️ My own workaround
I've added this in my own
Dockerfile
to get it to work sort of...I'm aware this is somewhat related to this discussion, but that didn't have the resolution I seek. :(
Beta Was this translation helpful? Give feedback.
All reactions