How to Install NetBox on Your UGREEN NAS

How to Install NetBox on Your Synology NAS

NetBox is the leading solution for modeling and documenting modern networks. By combining the traditional disciplines of IP address management (IPAM) and datacenter infrastructure management (DCIM) with powerful APIs and extensions, NetBox provides the ideal “source of truth” to power network automation. Available as open source software under the Apache 2.0 license, NetBox is employed by thousands of organizations around the world. In this step by step guide I will show you how to install NetBox on your UGREEN NAS using Docker & Portainer.

šŸ’”Note: This guide works perfectly with the latest NetBox v4.4.8 release.

šŸ’”Note: Check out my guide on how to Install NetBox on Your Synology NAS.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

InstallĀ Portainer using my step by step guide. If you already have Portainer installed on your UGREEN NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.

  • STEP 3

Go toĀ Files and open the docker folder. Inside the docker folder, create one new folder and name it netbox. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Netbox UGREEN NAS Set up 1

  • STEP 4

Now create three new folders inside the netbox folder that you have previously created at STEP 3, and name them config, db, redis.Ā Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Netbox UGREEN NAS Set up 2

  • STEP 5

Log into Portainer using your username and password. On the left sidebar in Portainer, click onĀ HomeĀ thenĀ Live connect. Follow the instructions in the image below.

Portainer Add Stack NAS 1

On the left sidebar in Portainer, click on StacksĀ thenĀ + Add stack. Follow the instructions in the image below.

Portainer Success Stack NAS

  • STEP 6

In the Name field type in netbox. Follow the instructions in the image below.

Note: Copy Paste the code below in the Portainer Stacks Web editor.

services:
  netbox-redis:
    image: redis
    container_name: NETBOX-REDIS
    hostname: netbox-redis
    user: 999:10
    healthcheck:
      test: ["CMD-SHELL", "redis-cli ping || exit 1"]
    command:
      - sh
      - -c
      - redis-server --appendonly yes --requirepass red-pass
    volumes:
      - /volume1/docker/netbox/redis:/data:rw
    environment:
      - REDIS_PASSWORD=red-pass
    restart: on-failure:5

  netbox-db:
    image: postgres:18
    container_name: NETBOX-POSTGRES-DB
    hostname: netbox-db
    user: 999:10
    healthcheck:
      test: ["CMD", "pg_isready", "-q", "-d", "netbox", "-U", "netbox-user"]
      timeout: 45s
      interval: 10s
      retries: 10
    volumes:
      - /volume1/docker/netbox/db:/var/lib/postgresql:rw
    environment:
      POSTGRES_DB: netbox
      POSTGRES_USER: netbox-user
      POSTGRES_PASSWORD: netbox-pass
    restart: on-failure:5

  netbox:
    image: ghcr.io/linuxserver/netbox:latest
    container_name: NETBOX
    hostname: netbox
    environment:
       PUID: 999
       PGID: 10
       TZ: Europe/Bucharest
       SUPERUSER_EMAIL: supergate84@gmail.com
       SUPERUSER_PASSWORD: mariushosting
       ALLOWED_HOST: 192.168.1.18
       DB_HOST: netbox-db
       DB_PORT: 5432
       DB_NAME: netbox
       DB_USER: netbox-user
       DB_PASSWORD: netbox-pass
       REDIS_HOST: netbox-redis
       REDIS_PORT: 6379
       REDIS_PASSWORD: red-pass
       REDIS_DB_TASK: 0
       REDIS_DB_CACHE: 1
    volumes:
      - /volume1/docker/netbox/config:/config:rw
    ports:
      - 9458:8000
    depends_on:
      netbox-redis:
        condition: service_healthy
      netbox-db:
        condition: service_started
    restart: on-failure:5

Note: Before you paste the code above in the Web editor area below, change the value numbers for user with your own UID and GID values. (Follow my step by step guide on how to do this.) 999 is my personal UID value and 10Ā is my personal GID value. You have to type in your own values.
Note: Before you paste the code above in the Web editor area below, change the values numbers for PUID and PGID with your own PUID and GID values. (Follow my step by step guide on how to do this.) 999 is my personal PUID value and 10Ā is my personal PGID value. You have to type in your own values.
Note: Before you paste the code above in the Web editor area below, change the value for TZ.Ā (Select your current Time Zone from this list.) Europe/Bucharest is my own Time Zone value. You have to type in your own Time Zone.
Note: Before you paste the code above in the Web editor area below, change the value for SUPERUSER_EMAIL.Ā supergate84@gmail.com is my own email address. You have to type in your own email address.
Note: Before you paste the code above in the Web editor area below, change the value for SUPERUSER_PASSWORD.Ā mariushosting is an example for a password. You have to type in your own password that you will need later at STEP 11.
Note: Before you paste the code above in the Web editor area below, change the value for ALLOWED_HOSTS and type in your own NAS local IP. 192.168.1.18 is my own NAS local IP. You should add your own NAS local IP.

Netbox UGREEN NAS Set up 3

  • STEP 7

Scroll down on the page until you see a button namedĀ Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

Netbox UGREEN NAS Set up 4

  • STEP 8

If everything goes right, you will see the following message at the top right of your screen: ā€œSuccess Stack successfully deployedā€œ.

Portainer Success Stack NAS

  • STEP 9

🟢Please Support My work by Making a Donation. Almost 99,9% of the people that install something using my guidesĀ forget to support my work, or justĀ ignoreĀ STEP 1. I’ve been very honest about this aspect of my work since the beginning: I don’t run any ADS, I don’t require subscriptions, paid or otherwise, I don’t collect IPs, emails, and I don’t have any referral links from Amazon or other merchants. I also don’t have any POP-UPs or COOKIES. I have repeatedly been told over the years how much I have contributed to the community. It’s something I love doing and have been honest about my passion since the beginning. But I also Need The Community to Support me Back to be able to continue doing this work.

  • STEP 10

Please wait approximately 10 minutes for the installation to be completed or you will get a blank page if you try to connect too soon. Now open your browser and type inĀ http://ugreen-ip-address:9458 If everything goes right, you will see the NetBox main page. At the top right of the page, click Log in. Follow the instructions in the image below.

Netbox UGREEN NAS Set up 5

  • STEP 11

On the username area, type in admin and in the password area type in the password (SUPERUSER_PASSWORD) that you have previously added at STEP 6. Click Sign In. Follow the instructions in the image below.

Netbox UGREEN NAS Set up 6

  • STEP 12

Your NetBox dashboard at a glance!

Netbox UGREEN NAS Set up 7

Enjoy NetBox!

šŸ†˜TROUBLESHOOTING

If you encounter issues by using this container, make sure to check out the Common Docker issuesĀ article.

Note: If you want to run the NetBox container over HTTPS, check out How to Run Docker Containers Over HTTPS on Your UGREEN NAS. You need to change the following lineĀ  ALLOWED_HOST: 192.168.1.18 at STEP 6

with the following:

ALLOWED_HOST: netboxname.ddns.net

Then, add your allowed hosts in the configuration.py file in /volume1/netbox/config/configuration.py separated by commas like netbox.mydomain.com, myservername, 192.168.1.18, netboxname.ddns.netšŸ“Note: You will need the šŸ–¼ļøTextEdit App to be installed via App Center to be able to open and modify the configuration.py file. You can also add ALLOWED_HOST = [Ā“*Ā“] in the configuration.py file to allow any host to connect. šŸ–¼ļøCheck the Example. After that, restart all 3 containers related to NetBox in Portainer.

āš ļøMandatory Add Read & Write Permissions to the Docker Folder. If you have already added the Read and Write Permissions to the Docker Folder, skip this STEP.
šŸ†™Note/Update/Container: How to Update Your Docker Containers on UGREEN NAS Using Portainer.
🐳Note: How to Create Docker Shortcuts on Desktop.
šŸ†•Note: How to Update Portainer to the latest version.
šŸ†•Note: How to Clean Docker.

This post was updated on Sunday / December 21st, 2025 at 12:06 AM