Skip to content

Docker Compose: Unable to Connect #1556

@Foxxify1

Description

@Foxxify1

Describe the bug
I used the example docker compose to write my own stack, with a cloudflare tunnel, some bind mounts, and internal network that will be for adding containers to. However, after deploying my compose, I was not able to access the panel at http://<your_server_ip>:8080/install, making me unable to set up my instance.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy docker compose
  2. Navigate to http://<your_server_ip>:8080/install
  3. Get 'Unable to Connect' error

Expected behavior
I should be able to access the container at the URL in the docs

Info (please complete the following information):

  • Server OS: TrueNAS Scale 25.10.1 (kernel 6.12.33)
  • Server Arch: x86_64
  • Nginx UI Version: 2.3.2
  • Your Browser: Firefox

Additional context
I ended up binding 9000:9000 and being able to set it up there, but only after I did a combination of clearing my bind mount directories, setting NGINX_UI_IGNORE_DOCKER_SOCKET=true with the guidance of DeepWiki (I don't know if this helped), and waaaay more research than it should have taken.

Here is my docker compose for reference

compose.yaml

I only changed my port mappings to 80:80 443:443 after I gained access to the Nginx UI panel.

services:

  cloudflared:
    image: cloudflare/cloudflared
    container_name: cloudflare-tunnel
    restart: unless-stopped
    command: tunnel --no-autoupdate run -token ${CLOUDFLARED_TOKEN}
    networks:
      - public-proxy

  nginx-ui:
    image: uozi/nginx-ui:${VERSION:-latest}
    container_name: nginx-ui
    restart: always
    stdin_open: true
    tty: true
    environment:
      - TZ=${TIMEZONE:-UTC}
      - NGINX_UI_IGNORE_DOCKER_SOCKET=true
    networks:
      - reverse-proxy
      - public-proxy
    ports:
      - 80:80
      - 443:443
      - 9000:9000
    volumes:
      - data:/etc/nginx
      - config:/etc/nginx-ui
      - www:/var/www

networks:
  reverse-proxy:
  public-proxy:

volumes:
  data:
    name: nginx-ui-data
    driver_opts:
      type: none
      o: bind
      device: ${DATA_LOCATION}/data
  config:
    name: nginx-ui-config
    driver_opts:
      type: none
      o: bind
      device: ${DATA_LOCATION}/config
  www:
    name: nginx-ui-www
    driver_opts:
      type: none
      o: bind
      device: ${DATA_LOCATION}/www

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions