[GH-ISSUE #1343] Setup Nginx UI with custom Nginx instance #5174

Closed
opened 2026-03-01 15:40:01 +03:00 by kerem · 3 comments
Owner

Originally created by @Mqxx on GitHub (Sep 5, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1343

Describe the bug
Setup Nginx UI with custom Nginx instance does not work...

To Reproduce
Steps to reproduce the behavior:

  1. Setup Nginx UI using the provided Docker Compose
  2. Open URL http://<your_server_ip>:8080
  3. Login
  4. Multiple Errors, also instance not found...
  5. When accessing http://<your_server_ip>:9080, the custom instance of Nginx is running fine

Expected behavior
There should be no errors and the NginxUI should work with the privided instance specified by the environment variable NGINX_UI_NGINX_CONTAINER_NAME

Info (please complete the following information):

Images:
Image

Image Image

Additional context
Is there any tutorial or guide on how to setup this? Am I doing something wrong?

My compose.yml file:

services:
  nginx-service:
    container_name: 'nginx-service'
    image: 'ghcr.io/mqxx/nginx-rtmp:latest'
    volumes:
      - './data/nginx:/etc/nginx'
      - './data/stream/hls:/tmp/stream/hls'

    ports:
      - '9080:80' # HTTP
      - '9443:443' # HTTPS
      - '1935:1935' # RTMP

    restart: unless-stopped

  nginx-ui:
    container_name: 'nginx-ui'
    image: 'uozi/nginx-ui:latest'
    depends_on:
      - nginx-service

    environment:
      - NGINX_UI_NGINX_CONTAINER_NAME=nginx-service

    ports:
      - '8080:80'
      - '8443:443'

    volumes:
      - './data/nginx:/etc/nginx'
      - './data/nginx_ui:/etc/nginx-ui'
      - '/var/www:/var/www'
      - '/var/run/docker.sock:/var/run/docker.sock'

    stdin_open: true
    tty: true
    restart: unless-stopped
Originally created by @Mqxx on GitHub (Sep 5, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1343 **Describe the bug** Setup Nginx UI with custom Nginx instance does not work... **To Reproduce** Steps to reproduce the behavior: 1. Setup Nginx UI using the provided Docker Compose 2. Open URL `http://<your_server_ip>:8080` 3. Login 4. Multiple Errors, also instance not found... 5. When accessing `http://<your_server_ip>:9080`, the custom instance of Nginx is running fine **Expected behavior** There should be no errors and the NginxUI should work with the privided instance specified by the environment variable `NGINX_UI_NGINX_CONTAINER_NAME` **Info (please complete the following information):** - Server OS: Ubuntu 22.04 - Server Arch: aach64 - Nginx UI Version: 2.1.17 - Your Browser: Brave - Nginx Docker Image: https://github.com/mqxx/nginx-rtmp-docker (This image works fine by it's self) **Images:** <img width="1695" height="901" alt="Image" src="https://github.com/user-attachments/assets/bbc43cff-6e55-4776-919b-1d0ac07cef8c" /> <img width="1707" height="505" alt="Image" src="https://github.com/user-attachments/assets/c3202577-43f5-470c-b828-cfe6a319fad5" /> <img width="305" height="206" alt="Image" src="https://github.com/user-attachments/assets/dfc88cb6-79e5-48fa-bd11-aa45f991248d" /> **Additional context** Is there any tutorial or guide on how to setup this? Am I doing something wrong? My `compose.yml` file: ```yml services: nginx-service: container_name: 'nginx-service' image: 'ghcr.io/mqxx/nginx-rtmp:latest' volumes: - './data/nginx:/etc/nginx' - './data/stream/hls:/tmp/stream/hls' ports: - '9080:80' # HTTP - '9443:443' # HTTPS - '1935:1935' # RTMP restart: unless-stopped nginx-ui: container_name: 'nginx-ui' image: 'uozi/nginx-ui:latest' depends_on: - nginx-service environment: - NGINX_UI_NGINX_CONTAINER_NAME=nginx-service ports: - '8080:80' - '8443:443' volumes: - './data/nginx:/etc/nginx' - './data/nginx_ui:/etc/nginx-ui' - '/var/www:/var/www' - '/var/run/docker.sock:/var/run/docker.sock' stdin_open: true tty: true restart: unless-stopped ```
kerem 2026-03-01 15:40:01 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Sep 18, 2025):

It seems that the environment variables were not configured correctly, causing nginx-ui to be unable to locate your nginx.

<!-- gh-comment-id:3307712370 --> @0xJacky commented on GitHub (Sep 18, 2025): It seems that the environment variables were not configured correctly, causing nginx-ui to be unable to locate your nginx.
Author
Owner

@Mqxx commented on GitHub (Sep 21, 2025):

How could they configured incorrectly? The only environment variable that I am using is NGINX_UI_NGINX_CONTAINER_NAME=nginx-service as described. So I expect it to work like this. Also are there any other variables that I need/can set?

<!-- gh-comment-id:3316138364 --> @Mqxx commented on GitHub (Sep 21, 2025): How could they configured incorrectly? The only environment variable that I am using is `NGINX_UI_NGINX_CONTAINER_NAME=nginx-service` as described. So I expect it to work like this. Also are there any other variables that I need/can set?
Author
Owner

@Mqxx commented on GitHub (Oct 9, 2025):

@0xJacky

<!-- gh-comment-id:3384504379 --> @Mqxx commented on GitHub (Oct 9, 2025): @0xJacky
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#5174
No description provided.