@Martineau thank you for pointing me in that direction. That looks like exactly what I'd need. When I get the final script up and running I'll link it for posterity.
I run a number of services in my network which I access from outside of my home in a cluster of RaspberryPis. The entire architecture is automated using Consul for service discovery and Traefik as a reverse proxy. The only weak link in my high availability setup is port-forwarding ports 80 and...