From bfbfee874fddce0c3ef73a020f73996ceba37e33 Mon Sep 17 00:00:00 2001 From: ShareVB Date: Fri, 2 Jan 2026 23:52:56 +0100 Subject: [PATCH] fix(README): add explaination for PORT env var --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 88850779..c8b434b2 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ Since the *base image* is now `nginx-unpriviledged` the container will now listen to port **8080** and not 80. So you need to update your port mapping, i.e. from `8080:80` to `8080:8080`. -If the container needs to listen to IPv6, it needs to be enabled: https://serverfault.com/questions/1147296/how-to-enable-ipv6-on-ubuntu-20-04. Alternatively, you can mount your own `nginx.conf` own using docker option `-v "./nginx.conf:/etc/nginx/conf.d/nginx.conf"` (with `listen [::]:8080;` removed) +You can override listening port using environment variable `PORT` (docker option `-e PORT=8888`). + +If the container needs to listen to IPv6, it needs to be enabled: https://serverfault.com/questions/1147296/how-to-enable-ipv6-on-ubuntu-20-04. Alternatively, you can mount your own `nginx.conf` own using docker option `-v "./nginx.conf:/etc/nginx/templates/default.conf.template"` (with `listen [::]:8080;` removed) ## PR Welcome