[GH-ISSUE #171] NginxUI port #7213

Closed
opened 2026-03-12 19:34:16 +03:00 by kerem · 2 comments
Owner

Originally created by @RizqiSyahrendra on GitHub (Oct 7, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/171

Is your feature request related to a problem? Please describe.
I am confused, in docker container how to define custom port for admin page (nginx ui) but keep using 80/443 as default built-in nginx http/https port? just for security purposes, so there's no one can access the admin page (nginx ui) unless owner

Describe the solution you'd like
Using dockerfile or docker compose environment variable, for example : NGINXUI_PORT=9090

Originally created by @RizqiSyahrendra on GitHub (Oct 7, 2023). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/171 **Is your feature request related to a problem? Please describe.** I am confused, in docker container how to define custom port for admin page (nginx ui) but keep using 80/443 as default built-in nginx http/https port? just for security purposes, so there's no one can access the admin page (nginx ui) unless owner **Describe the solution you'd like** Using dockerfile or docker compose environment variable, for example : NGINXUI_PORT=9090
kerem closed this issue 2026-03-12 19:34:21 +03:00
Author
Owner

@0xJacky commented on GitHub (Oct 7, 2023):

You can add a port mapping in docker_compose.yml as follows:

- "9000:9090" 

Alternatively, add a port mapping parameter -p9000:9090 when starting the nginx ui container. Additionally, remove the conf.d/nginx-ui.conf file from the nginx configuration directory on your host, then recreate the container. This should meet your requirements.

<!-- gh-comment-id:1751642884 --> @0xJacky commented on GitHub (Oct 7, 2023): You can add a port mapping in docker_compose.yml as follows: ``` - "9000:9090" ``` Alternatively, add a port mapping parameter `-p9000:9090` when starting the nginx ui container. Additionally, remove the `conf.d/nginx-ui.conf` file from the nginx configuration directory on your host, then recreate the container. This should meet your requirements.
Author
Owner

@RizqiSyahrendra commented on GitHub (Oct 7, 2023):

You can add a port mapping in docker_compose.yml as follows:

- "9000:9090" 

Alternatively, add a port mapping parameter -p9000:9090 when starting the nginx ui container. Additionally, remove the conf.d/nginx-ui.conf file from the nginx configuration directory on your host, then recreate the container. This should meet your requirements.

I see, I didn't realize that default port of the nginxui is 9000 and you already proxied it to 80 through nginx, thank you it meets my requirement now. btw a little typo, the mapping should be "9090:9000"

<!-- gh-comment-id:1751647380 --> @RizqiSyahrendra commented on GitHub (Oct 7, 2023): > You can add a port mapping in docker_compose.yml as follows: > > ``` > - "9000:9090" > ``` > > Alternatively, add a port mapping parameter `-p9000:9090` when starting the nginx ui container. Additionally, remove the `conf.d/nginx-ui.conf` file from the nginx configuration directory on your host, then recreate the container. This should meet your requirements. I see, I didn't realize that default port of the nginxui is 9000 and you already proxied it to 80 through nginx, thank you it meets my requirement now. btw a little typo, the mapping should be "9090:9000"
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#7213
No description provided.