Http to https redirect with v2. ends in 404 for http

I was struggling with this same issue and I identified the issue from the original poster, so I wanted to share. It does work in Docker Compose, but with one caveat. The solution can be found here: HTTP to HTTPS Redirect Causing a 404