After docker restart, proxy and gateway IPs require updates
Some docker-based applications like e.g. Drupal are configured, so they know about the proxy and gateway IPs. Those IPs are configured when the app gets deployed.
Problem: when docker gets restarted, those IPs may change.
Solution: when we start Traefik, we should collect and store those 2 IPs somewhere. Then, we can run some tasks that re-configure all depending on apps, as soon as those IPs have changed.
For Drupal that could be like this:
sed -i "s/172.20.0.3/172.20.0.8/g" /drupal/*/*/app/settings/default/settings.docker.php
Edited by Jürgen Haas