yusing / go-proxy

Easy to use reverse proxy with docker integration
MIT License
93 stars 4 forks source link

[Feature] Stop / Start containers based on incoming traffic #2

Open accforgithubtest opened 4 months ago

accforgithubtest commented 4 months ago

This is a great project, the auto-detect is such a neat feature ! Other features are nicely designed and implemented too. Thank you for this neat project !.

Would you be open to implementing some features similar to ContainerNursery or Sablier, which spin up containers on demand when there is a user requests for a specific domain, and when there is no traffic, the containers are stopped after a certain amount of time (different config based settings for different containers). A loading page is displayed while the container is starting up, and once the container is up the request is sent to the container. This is a very useful feature for self hosting where the containers do not need to be running all the time, and would fit perfectly into go-proxy to have a neat proxy server that helps run containers in self-hosted environments.

yusing commented 4 months ago

Amazing idea! That will be in my todo list!