typicode / hotel

🏩 A simple process manager for developers. Start apps from your browser and access them using local domains
MIT License
9.98k stars 422 forks source link

Allow specifying multiple ports #191

Open lkwdwrd opened 7 years ago

lkwdwrd commented 7 years ago

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!

typicode commented 7 years ago

Hi @lkwdwrd,

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.

Thank you for the feedback :)