mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #1491] how to changer the port in environment #1142
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @crossgg on GitHub (Oct 17, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1491
I would like to start npm with docker,but IPV6 is not supported in my docker with bridge mode.
IPV6 is only supported in host mode,but the port “80" "443" are occupied.
how can I changer the port in environment?
thanks!
@chaptergy commented on GitHub (Oct 17, 2021):
The docker-compose file contains a port section, where there are port pairs (e.g.
80:80) where the first number before the colon is the port used on the host, and the second number is the port inside the container. Just change the first value to use any port you want. But remember, if you do not use standard ports you will have to access your proxied apps including your non-custom port. For example when you use port3080instead of80you can only access your app atsub.example.com:3080instead ofsub.example.com.Snipped from example yml file for some context:
@crossgg commented on GitHub (Oct 20, 2021):
this mode,the network mode is bridge,IPV6 is not enable in my docker。
I want to change the network mode "host",
in host mode,
is not allowed
but I can use
I would like to know what is
xxxxyyyyzzzz@chaptergy commented on GitHub (Oct 20, 2021):
Ah, now I understand. It is not possible to change the ports via the environment, as they are / have to be hardcoded in the nginx config files and nginx does not support variables for the listen directive (which specifies the port on which is listened on).
@chaptergy commented on GitHub (Oct 24, 2021):
You could try to use the long format to set host mode on the ports and see if that works. It should be something like this: