
Outline is a fast, collaborative team knowledge base and wiki. It lets teams create, edit, and organize documents in real time with Markdown support, comments, and threads. Key features include powerful search, AI-powered answers, Slack integration, public/private sharing, permissions, and customizable branding. It’s open source and can be self-hosted. In this step by step guide I will show you how to install Outline on your UGREEN NAS using Docker & Portainer.
This guide works perfectly with the latest Outline v1.8.1 release.
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
ā ļøMandatory: Enable HTTPS on your UGREEN NAS.
STEP 4
Create a new hostname on the noip website using your noip account. For example, I have created mariuslineĀ as Host and I use the free ddns.net domain. In the IP Address area, type in your own IPV4 IP address from your ISP, then click Create. Follow the instructions in the image below.

STEP 5
ā ļøMandatory: Add Read & Write Permissions to the Docker Folder.
STEP 6
Go toĀ Files and open the docker folder. Inside the docker folder, create one new folder and name it outline. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

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

STEP 8
Follow my step by step guide on how to activate SMTP for your Gmail account. This step is mandatory. Note: If you don’t want to use the easiest way for SMTP with Google and you already have SMTP details from your own Mail Server, you can just skip this STEP and use your personalized email SMTP details instead.
STEP 9
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.

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

STEP 10
In the Name field type in outline. Follow the instructions in the image below.
services:
db:
image: postgres:18
container_name: Outline-DB
hostname: outline-db
user: 999:10
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "outline", "-U", "outlineuser"]
timeout: 45s
interval: 30s
retries: 10
security_opt:
- no-new-privileges:true
volumes:
- /volume1/docker/outline/db:/var/lib/postgresql/:rw
environment:
POSTGRES_DB: outline
POSTGRES_USER: outlineuser
POSTGRES_PASSWORD: outlinepass
restart: on-failure:5
redis:
image: redis:8-alpine
container_name: Outline-REDIS
user: 999:10
healthcheck:
test: ["CMD-SHELL", "redis-cli ping || exit 1"]
hostname: outline-redis
security_opt:
- no-new-privileges:true
volumes:
- /volume1/docker/outline/redis:/data:rw
environment:
TZ: Europe/Bucharest
restart: on-failure:5
outline:
image: outlinewiki/outline:latest
container_name: Outline
user: 0:0
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/3000' || exit 1
interval: 10s
timeout: 5s
retries: 3
start_period: 90s
environment:
NODE_ENV: production
TZ: Europe/Bucharest
URL: https://mariusline.ddns.net
DATABASE_URL: postgresql://outlineuser:outlinepass@outline-db:5432/outline?sslmode=disable
REDIS_URL: redis://redis:6379
REDIS_COLLABORATION_URL: redis://redis:6379/1
SECRET_KEY: 09c29b750ab22aed045ebea4a94442f304318688e075b5d468932d776fc6d72b
UTILS_SECRET: bc948c616ea05e0aa8cbf6927e4432ee011152ee661b102ec2480e5b0722a14c
SMTP_HOST: smtp.gmail.com
SMTP_PORT: 465
SMTP_USERNAME: Your-own-gmail-address
SMTP_FROM_EMAIL: Your-own-gmail-address
SMTP_PASSWORD: Your-own-app-password
FILE_STORAGE: local
FILE_STORAGE_LOCAL_ROOT_DIR: /var/lib/outline/data:rw
FILE_STORAGE_UPLOAD_MAX_SIZE: 26214400 #25 MB
ports:
- 4997:3000
volumes:
- /volume1/docker/outline/data:/var/lib/outline/data:rw
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
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 value for TZ.Ā (Select your current Time Zone from this list.)
Note: Before you paste the code above in the Web editor area below, change the value for URLĀ and type in your own synology.me DDNS withĀ https:// at the beginning that you have previously created at STEP 6.
Note: Before you paste the code above in the Web editor area below, change the value for SECRET_KEY.
(š¢Click this Link to Generate Your Own Free APP KEY.) š¼ļøCheck Example Screenshot. (In the prompt, type in the following text: openssl rand -hex 32Ā then hit enter on your Keyboard). š¼ļøCheck Example Screenshot and copy your SECRET_KEY.
Note: Before you paste the code above in the Web editor area below, change the value for UTILS_SECRET.
(š¢Click this Link to Generate Your Own Free APP KEY.) š¼ļøCheck Example Screenshot. (In the prompt, type in the following text: openssl rand -hex 32Ā then hit enter on your Keyboard). š¼ļøCheck Example Screenshot and copy your UTILS_SECRET.
Note: Before you paste the code above in the Web editor area below, change the value for SMTP_USERNAMEĀ and type in your own Gmail address. STEP 8.
Note: Before you paste the code above in the Web editor area below, change the value for SMTP_FROM_EMAILĀ and type in your own Gmail address. STEP 8.
Note: Before you paste the code above in the Web editor area below, change the value for SMTP_PASSWORDĀ and type in your own Gmail app password. STEP 8. ā ļøWarning: Do NOT confuse with your own Gmail password. This is the Gmail APP password.

STEP 11
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.

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

STEP 13
Open your Nginx Proxy Manager container that you have previously installed at STEP 3. Click Add Proxy Host. A new pop up window will open. Add the following details:
Domain Names: Type in your own noip domain name that you have previously created at STEP 4.
Scheme: http
Forward Hostname/IP: Type in the local NAS IP of your UGREEN NAS.
Forward Port: Type in the Outline local Port that is 4997
Check Block Common Exploits
Check Websockets Support
Click the SSL tab. Follow the instructions in the image below.

STEP 14
After you click the SSL tab, add the following details:
SSL Certificate: Request a new SSL Certificate
Check: Force SSL
Check: HSTS Enabled
Check: HTTP/2 Support
Click Save. Follow the instructions in the image below.

STEP 15
In the Proxy Hosts area, if everything goes right, you will see that your hostname has been generated. Click on it. Follow the instructions in the image below.

STEP 16
š¢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 17
Now open your browser and type in your HTTPS/SSL certificate like this https://yourname.ddns.netĀ In my case it’s https://mariusline.ddns.net If everything goes right, you will see the Outline setup page. Type in your own Workspace name, Admin name and Admin email. Click Continue. Follow the instructions in the image below

STEP 18
Click Home. On the left sidebar, go to the user Settings. Click Appearance then Dark to switch the theme to Dark. Click + New doc to add your first document. Follow the instructions in the image below.

STEP 19
At the top right of the page, click on the 3 horizontal dots. Follow the instructions in the image below.

STEP 20
Click Permissions. Follow the instructions in the image below.

STEP 21
Select Publish to the web. Copy the auto-generated URL. Follow the instructions in the image below.

STEP 22
Your shared link at a glance!
Enjoy Outline 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.
šNote: How to Clean Docker.
This post was updated on Tuesday / June 9th, 2026 at 11:24 PM