CivicSpleen / ambry

A comprehensive data package manager
BSD 2-Clause "Simplified" License
4 stars 5 forks source link

Docker UI stop to restart stopped UI containers #164

Open ericbusboom opened 8 years ago

ericbusboom commented 8 years ago

Create a special container that can take web requests for stopped UI containers, then restart the container and re-direct the request. This would probably require an extra configuration in jwilder/nginx-proxy to recieve the stopped event and transfer to a new container.

ericbusboom commented 8 years ago

Could use docker-py to read events from the docker socket, then control NGINX. Probably could just duplicate most of jwilder/nginx-proxy, with a bit more complexity.

If so, should definitely have the controller running in a seperate process, and nginx mapps in the config file, with inotify to restart on changes.