This is an example on how to use WireGuard Easy with Caddy, to access it on an HTTPS domain (e.g. https://wg-easy.myhomelab.com).
docker-compose.yml:
Caddyfile (Same location as docker-compose.yml):
Save these files, edit the variables marked with ⚠️ and run docker-compose up -d in the same directory.
Caddy takes care of certificate generation and renewal automatically.
Of course, make sure to point wg-easy.myhomelab.com to your server's IP address with a DNS A record or DynamicDNS or any other method. Ensure ports 80, 443, 51820 are available (e.g. by forwarding them in your router).
That's it!