Hi,

I'm struggling here.....

I need to run 2 instances of Caddy on the same machine, obviously this is a problem because they'll both want to bind to the same ports.

The reason for doing this is that I want to run one instance with the public facing proxy and another instance for private internal proxies.

That is to say, there are some services that I want available available on the WAN and some I don't.

Now, I've managed to get this working, but I don't really understand how and I can't make it persist across reboots.

I'm using macvlan to create a virtual adaptor so that the second caddy instance can bind to that, if somebody has any detailed information on achieving this across reboots I'd be grateful.

To recap.

1.) Running Ubuntu
2.) Running Docker
3.) First Caddy instance is the WAN facing proxy.
4.) Second Caddy instance needs to be on a separate IP and will be the LAN facing proxy.
5.) Needs to persist across reboots

Both caddy instances are configured to get certificates from lets encrypt using dns verification.