While working on various projects, sometimes I want to expose multiple ports.
For example, MySQL in a docker-compose setup: If I were able to configure and receive an extra environment variable, say ${PORT_3306}, I could tell Docker to map the container's 3306 to a random available localhost port (contained in that $PORT_3306 environment variable). Even better if the proxy then recognized project.dev:3306 and mapped that to the randomly chosen localhost port. This would allow various tools to live harmoniously together all related to the same project, yet still be available on the standard ports through the proxy.
Good idea! Currently, I'm lacking time to work on all projects at the same time (trying to improve this with Patreon) but yes, it could be a great addition to Hotel.
While working on various projects, sometimes I want to expose multiple ports.
For example, MySQL in a
docker-compose
setup: If I were able to configure and receive an extra environment variable, say${PORT_3306}
, I could tell Docker to map the container's 3306 to a random available localhost port (contained in that$PORT_3306
environment variable). Even better if the proxy then recognized project.dev:3306 and mapped that to the randomly chosen localhost port. This would allow various tools to live harmoniously together all related to the same project, yet still be available on the standard ports through the proxy.Great project, thank you!