Thanks for posting here and welcome to the community!
Since you’re using docker, the WEBHOOK_URL needs to be loaded from the container when launching. The .env file is supposed to only hold the values that you want your docker environment to be booted with.
So either put it in your docker compose file (recommendation) or you can run the flag when launching the container -e WEBHOOK_URL=https://n8n.mydomain.com