How to Install Linkwarden on Your UGREEN NAS

How to Install Linkwarden on Your UGREEN NAS

Linkwarden is a self-hosted, open-source collaborative bookmark manager to collect, organize and archive webpages. The objective is to organize useful webpages and articles you find across the web in one place, and since useful webpages can go away, Linkwarden also saves a copy of each webpage as a Screenshot and PDF, ensuring accessibility even if the original content is no longer available. Additionally, Linkwarden is designed with collaboration in mind, sharing links with the public and/or allowing multiple users to work together seamlessly. In this step by step guide I will show you how to install LinkwardenĀ on yourĀ UGREEN NASĀ using Docker & Portainer.

šŸ’”Note: This guide works perfectly with the latest Linkwarden v2.13.2Ā release.

šŸ’”Note: Check out my guide on how to Install Linkwarden 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Ā linkwarden. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Linkwarden UGREEN NAS Set up 1

  • STEP 4

Now create two new folders inside the linkwarden folder that you created at STEP 10 and name them data and db. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Linkwarden 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 Add Stack NAS 2

  • STEP 6

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

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

services:
  db:
    image: postgres:18
    container_name: Linkwarden-DB
    hostname: linkwarden-db
    user: 999:10
    security_opt:
      - no-new-privileges:true
    healthcheck:
      test: ["CMD", "pg_isready", "-q", "-d", "linkwarden", "-U", "linkwardenuser"]
      timeout: 45s
      interval: 10s
      retries: 10
    volumes:
      - /volume1/docker/linkwarden/db:/var/lib/postgresql:rw
    environment:
      POSTGRES_DB: linkwarden
      POSTGRES_USER: linkwardenuser
      POSTGRES_PASSWORD: linkwardenpass
    restart: on-failure:5

  linkwarden:
    image: ghcr.io/linkwarden/linkwarden:latest
    container_name: Linkwarden
    healthcheck:
      test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/3000' || exit 1
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 90s
    hostname: linkwarden
    security_opt:
      - no-new-privileges:true
    ports:
      - 7461:3000
    volumes:
      - /volume1/docker/linkwarden/data:/data/data:rw
    environment:
      DATABASE_URL: postgres://linkwardenuser:linkwardenpass@linkwarden-db:5432/linkwarden
      NEXTAUTH_SECRET: q9TAW5pK5O9DqAWhY18XupmtlZk0ULRmjroiZcfvJkvZduSYzrzc0FtM2yfHEeyB
      NEXTAUTH_URL: http://localhost:3000/api/v1/auth
# Additional Optional Settings
#      PAGINATION_TAKE_COUNT: 
#      STORAGE_FOLDER: 
#      AUTOSCROLL_TIMEOUT: 
      NEXT_PUBLIC_DISABLE_REGISTRATION: false #or true
    restart: on-failure:5
    depends_on:
      db:
        condition: service_healthy

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 value for NEXTAUTH_SECRET.Ā (Generate your own 64 length NEXTAUTH_SECRET.)

Linkwarden 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.

Linkwarden UGREEN NAS Set up 4

āŒ›Now just wait because the Linkwarden image is about 4.5GB.

  • 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

The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection. Now open your browser and type in http://ugreen-ip-address:7461 If everything goes right, you will see the Linkwarden registration page. Click Sign up. Follow the instructions in the image below.

Linkwarden UGREEN NAS Set up 5

  • STEP 11

Type in your own Name, Username and Password. Confirm the password then click Sign Up. Follow the instructions in the image below.

Linkwarden UGREEN NAS Set up 6

  • STEP 12

Type in your own Username and Password that you have previously created at STEP 11, then click Login. Follow the instructions in the image below.

Linkwarden UGREEN NAS Set up 7

  • STEP 13

Your Linkwarden dashboard at a glance! Start organizing your webpages. At the top right of the page, click on the user icon, then Settings. Follow the instructions in the image below.

Linkwarden UGREEN NAS Set up 8

  • STEP 14

On the left sidebar, click Preference. Adjust your Settings, then click Save Changes. Follow the instructions in the image below.

Linkwarden UGREEN NAS Set up 9

  • STEP 15

Your Linkwarden dashboard at a glance!

Linkwarden UGREEN NAS Set up 10

  • STEP 16

If you want to disable user registration in Linkwarden, just change the following line in the compose at STEP 6:

NEXT_PUBLIC_DISABLE_REGISTRATION: false

with the following one:

NEXT_PUBLIC_DISABLE_REGISTRATION: true

Click update the stack to update the settings. From this point on, any user that will try to register a new account in Linkwarden will be rejected.

Enjoy Linkwarden!

šŸ†˜TROUBLESHOOTING

Note: If you want to run the Linkwarden container over HTTPS, check out How to Run Docker Containers Over HTTPS on Your UGREEN NAS.
šŸ†™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.

This post was updated on Friday / December 12th, 2025 at 1:40 AM