You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having some issues with using the default port that is exposed. Once this port is exposed, there is no way to unexpose it or hide it. It is much preferable for a project to choose an arbitrary port (like the standard 80 and 443) for inside the container that users can then map to any port they want outside the container (using docker compose). By using the EXPOSE command in the docker file, even if you map another port through a docker compose file and you use a nonstandard port inside the container, you still get an extra exposed port 8080 which might collide with other containers running that also natively expose port 8080.
When I use the normal docker run -p 9000:8080 --name gatus twinproduction/gatus command, everything works as expected with only port 9000 being exposed. But when I use a docker-compose.yml file and a custom internal port of 4443 for https in the config.yml file, the EXPOSE line causes port 8080 to be exposed in addition to the selected port in the docker-compose.yml. Here's an example docker-compose.yml and config.yml that shows this problem.
I would prefer to only have the port that is selected in my docker compose file to be exposed. I believe this would be resolved by removing the line here:
Describe the bug
Hello,
I'm having some issues with using the default port that is exposed. Once this port is exposed, there is no way to unexpose it or hide it. It is much preferable for a project to choose an arbitrary port (like the standard 80 and 443) for inside the container that users can then map to any port they want outside the container (using
docker compose
). By using the EXPOSE command in the docker file, even if you map another port through adocker compose
file and you use a nonstandard port inside the container, you still get an extra exposed port 8080 which might collide with other containers running that also natively expose port 8080.gatus/Dockerfile
Line 19 in 5aa83ee
What do you see?
When I use the normal
docker run -p 9000:8080 --name gatus twinproduction/gatus
command, everything works as expected with only port 9000 being exposed. But when I use adocker-compose.yml
file and a custom internal port of 4443 for https in theconfig.yml
file, the EXPOSE line causes port 8080 to be exposed in addition to the selected port in thedocker-compose.yml
. Here's an exampledocker-compose.yml
andconfig.yml
that shows this problem.docker-compose.yml
./config/config.yml
docker ps
output with extra port 8080What do you expect to see?
I would prefer to only have the port that is selected in my docker compose file to be exposed. I believe this would be resolved by removing the line here:
gatus/Dockerfile
Line 19 in 5aa83ee
(This is one of many docker services that I have found that expose this port).
List the steps that must be taken to reproduce this issue
Example described in "What do you see?"
Version
twinproduction/gatus:latest
Additional information
No response
The text was updated successfully, but these errors were encountered: