nginx-proxy / docker-gen

Generate files from docker container meta-data
MIT License
4.42k stars 603 forks source link

Listen for network (dis)connect events (API v1.22+) #190

Open AHelper opened 8 years ago

AHelper commented 8 years ago

If a container's network config changes, docker-gen should trigger the generator.

Right now, v1.20+ needs either an interval, a restart of docker-gen, or a restart of the changed container.

outdooracorn commented 4 months ago

This feature would be really helpful for me. I'm wanting to use nginx-proxy with several different docker compose projects. Currently, the process would be:

I'm hoping to avoid the last step and think that docker-gen listening for changes to the nginx-proxy container would solve this. Starting the docker compose project before the nginx-proxy container isn't possible for me, as each project is created and destroyed at different times.

@buchdag, any chance of adding this feature? Thanks