mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
fix(README): add explaination for PORT env var
This commit is contained in:
1 parent
529c7da1e2
commit
bfbfee874f
1 file changed
+3
-1
@@ -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`.
|
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
|
## PR Welcome
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user