The person in the below thread had what sounds like a similar problem (they were also using a reverse proxy). Unfortunately, after much troubleshooting their result was "after a few docker compose up and down... it all magically started to work...." so it's not clear what, if anything, contributed to the fix. Hopefully it will be useful for you to read through their experience.