Open SimonHaas opened 2 years ago
Thank you very much for the issues that you created.
I'm doing a re-write of this plugin to extend it to other reverse proxies.
It actually still suffers from the issue you mentioned, but it's not completely usable right now. Or at least, not to my standards.
Please take a look at this repository https://github.com/acouvreur/sablier in the beta branch,
I will archive this repository and the service one, once Sablier is released.
Sablier is a merge from the servic repo, the plugin repo and the key value with timeout I forked.
If you have two services that you want to start and stop on demand together (probably even when you have two or more independent services - but that I did not test) there is a bug regarding the names of the containers.
For example if you have wikijs and wikijs_db as as container_name on two services
does not work. The ondemand-plugin says that there are two containers with the name "wikijs" which is not true. The same problem occurs when you for example have a nextcloud with an container named "nextcloud_db" running on your server. Then the plugin says two containers with the name "db" exist.
It seems like the plugin does not do an exact comparison of the container names but only searches if a container name contains the name.
docker-compose.yml the desired but not working config is commented out
dynamic-config.yml