[GH-ISSUE #1221] NginxUI won't start with custom Nginx instance #2517

Closed
opened 2026-02-27 12:23:24 +03:00 by kerem · 0 comments
Owner

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

Describe the bug
I am currently trying to use nginx-ui with a custom instance of nginx (tiangolo/nginx-rtmp) but all I am getting when starting is an error saying this:

nginx-service  | 2025/07/07 15:25:55 [emerg] 1#1: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1
nginx-service  | nginx: [emerg] getpwnam("nginx") failed in /etc/nginx/nginx.conf:1

To Reproduce
Copy this docker-compose.yml file and start it:

services:
  nginx-service:
    container_name: 'nginx-service'
    image: 'tiangolo/nginx-rtmp:latest'
    volumes:
      - './data/nginx:/etc/nginx'

    ports:
      - '1935:1935'

    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

Expected behavior
The image starts without a problem and uses the custom instance of nginx

Info (please complete the following information):

  • Server OS: Ubuntu jammy 22.04
  • Server Arch: aarch64
  • Nginx UI Version: v2.1.12
  • Your Browser: Chrome
Originally created by @Mqxx on GitHub (Jul 7, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1221 **Describe the bug** I am currently trying to use nginx-ui with a custom instance of nginx ([tiangolo/nginx-rtmp](https://github.com/tiangolo/nginx-rtmp-docker)) but all I am getting when starting is an error saying this: ``` nginx-service | 2025/07/07 15:25:55 [emerg] 1#1: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1 nginx-service | nginx: [emerg] getpwnam("nginx") failed in /etc/nginx/nginx.conf:1 ``` **To Reproduce** Copy this `docker-compose.yml` file and start it: ```yml services: nginx-service: container_name: 'nginx-service' image: 'tiangolo/nginx-rtmp:latest' volumes: - './data/nginx:/etc/nginx' ports: - '1935:1935' 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 ``` **Expected behavior** The image starts without a problem and uses the custom instance of nginx **Info (please complete the following information):** - Server OS: `Ubuntu jammy 22.04` - Server Arch: `aarch64` - Nginx UI Version: `v2.1.12` - Your Browser: `Chrome`
kerem 2026-02-27 12:23:24 +03:00
  • closed this issue
  • added the
    bug
    label
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#2517
No description provided.