Thanks, I thought ‘PHX_HOST’ can also contain a port.
The ‘PORT’ is for starting the server on this port but not the port for the URL generation.
But in a docker container or behind a reverse proxy sometimes the port the server opens is different to the port in the generated URL.
I made it now a bit more explicit so that all my ‘PHX_’ env vars are only used for URL generation and the old ‘PORT’ is still the opened TCP Port.