Closed n9iels closed 1 year ago
Ah yes, ofcourse. I just fixed it (try at least). A new release will be available soon.
Ja, ik denk dat ik het hele nginx config stuk eruit ga slopen. Het is denk ik beter dat wanneer je een specifieke config wenst, dat je die dan mount in de container. Het geknip en geplak met bash is onbetrouwbaar helaas.
Rolling back.
Support guidelines
I've found an issue and checked that ...
Description
When setting the
NGINX_LISTEN_PORT
environment variable the port is correctly changed upon creation of the container. However, after restarting the container the default port80
and the port set in the environment variable seems to merge and the container crashes.Expected behaviour
The custom port should work after restarting the container.
Actual behaviour
The customly set port and the default port
80
seems to merge after restarting the container. Also the following error appears in the logs:Steps to reproduce
NGINX_LISTEN_PORT
environment variableDocker info
Version
docker-compose --version
):v2.17.2
uname -a
):Linux vps9301 5.15.0-70-generic #77-Ubuntu SMP Tue Mar 21 14:02:37 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Docker compose
Container logs
nginx: [emerg] invalid port in "808081" of the "listen"directive in /etc/nginx/http.d/dsmr-webinterface.conf:6
Additional info
No response