Sign inSign up

jasonluo198x/nginx-proxy-manager

By jasonluo198x

•Updated over 4 years ago

Using env -e HTTP_PORT -e HTTPS_PORT -e CONSOLE_PORT to change the listening ports

Image
0

10K+

jasonluo198x/nginx-proxy-manager repository overview

Make it possible to change the container listening ports using --env

You will find it useable when you try to set the network as --host.

I'm using KVM to host some services , but I don't want the virtual machines exposed to my host networks. So, I just assign 'virbr0' interface to my virtual machines.

To public the services in vms , I need run NginxProxyManager with '--host' network to access the 'virbr0' net (Yes, you can do it by add route rules or iptables nat …… BUT, I don't think it's easy enough to do so ~~)

As you know the most popular containers of NginxProxyManager don't support change the listening ports ……

so…… here's it.

eg:

docker run -d --name=NginxProxyManager --restart=always --privileged=false
--network=host
-e PUID=1000
-e PGID=1000
-e TZ=Asia/Shanghai
-e HTTP_PORT=8080
-e HTTPS_PORT=4433
-e CONSOLE_PORT=8181
-v /mnt/user/appdata/NginxProxyManager/config:/config
jasonluo198x/nginx-proxy-manager:latest

Tag summary

Content type

Image

Digest

Size

66.2 MB

Last updated

over 4 years ago

docker pull jasonluo198x/nginx-proxy-manager