Why WordPress loops on redirects behind HTTPS
Behind a proxy, WordPress sees plain HTTP and keeps sending wp-admin back to HTTPS. The official Docker configuration already handles X-Forwarded-Proto. Preserve that handling in custom configurations; this template also trusts X-Forwarded-Host and supplies managed TLS before your first login.