How to Install Ghost on Your UGREEN NAS

How to Install Ghost on Your UGREEN NAS

Ghost is a free and open source blogging platform like WordPress and Grav. Ghost is written in JavaScript and distributed under the MIT License, designed to simplify the process of online publishing for individual bloggers as well as online publications. Ghost CMS is actually used by millions of people. The Ghost app is a powerful app for new-media creators to publish, share, and grow a business around their content. It comes with modern tools to build a website, publish content, send newsletters & offer paid subscriptions to members. In this step by step guide I will show you how to install Ghost on your UGREEN NAS using Docker & Portainer.

šŸ’”Note:Ā This guide works perfectly with the latest Ghost 5.120.3 release.

šŸ’”Note: Check out my guide on how to Install Ghost 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

āš ļø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 mariusghostĀ as hostname 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/Add Hostname. Follow the instructions in the image below.

Ghost UGREEN NAS Set up 1

  • STEP 5

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

Ghost UGREEN NAS Set up 2

  • STEP 6

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 7

Log into Portainer using your username and password. In the left sidebar in Portainer, click on StacksĀ thenĀ + Add stack. Follow the instructions in the image below.

UGREEN NAS Portainer Add Stack

  • STEP 8

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

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

services:
  ghost-db:
    image: mysql:8
    container_name: Ghost-DB
    hostname: ghost-db
    security_opt:
      - no-new-privileges:true
    healthcheck:
      test: mysqladmin -p$$MYSQL_ROOT_PASSWORD ping -h localhost
      interval: 20s
      start_period: 10s
      timeout: 10s
      retries: 3
    environment:
      - PUID=999
      - PGID=10
      - TZ=Europe/Bucharest
      - MYSQL_ROOT_PASSWORD=superpassword
      - MYSQL_DATABASE=ghost
      - MYSQL_USER=ghostuser
      - MYSQL_PASSWORD=ghostpass
    volumes:
      - /volume1/docker/ghost/db:/var/lib/mysql:rw
    restart: on-failure:5

  ghost:
    image: ghost:latest
    container_name: Ghost
    healthcheck:
      test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/2368' || exit 1
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 90s
    hostname: ghost
    security_opt:
      - no-new-privileges:true
    user: 999:10
    environment:
      database__client: mysql
      database__connection__host: ghost-db
      database__connection__user: ghostuser
      database__connection__password: ghostpass
      database__connection__database: ghost
      url: https://mariusghost.ddns.net
      mail__transport: SMTP
      mail__options__service: SMTP
      mail__from: Your-own-gmail-address
      mail__options__host: smtp.gmail.com
      mail__options__port: 587
      mail__options__auth__user: Your-own-gmail-address
      mail__options__auth__pass: Your-own-app-password
      NODE_ENV: production
    volumes:
      - /volume1/docker/ghostdb:/var/lib/ghost/content:rw
    ports:
      - 2368:2368
    restart: on-failure:5
    depends_on:
      ghost-db:
        condition: service_healthy

Note: Before you paste the code above in the Web editor area below, change the value numbers for PUIDĀ andĀ PGIDĀ with your own values. (Follow my step by step guide on how to do this.)
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 numbers forĀ userĀ with your own UID and GID values. (Follow my step by step guide on how to do this.)Ā 1026Ā is my personal UID value andĀ 100Ā 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 url and type in your own no IP DDNS withĀ https:// at the beginning that you have previously created at STEP 4.
Note: Before you paste the code above in the Web editor area below, change the value for mail__fromĀ and type in your own Gmail address. Refer to STEP 6.
Note: Before you paste the code above in the Web editor area below, change the value for mail__options__auth__userĀ and type in your own Gmail address. Refer to STEP 6.
Note: Before you paste the code above in the Web editor area below, change the value for mail__options__auth__passĀ and type in your own Gmail app password. Refer to STEP 6.

Ghost UGREEN NAS Set up 3

  • STEP 9

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.

Ghost UGREEN NAS Set up 4

  • STEP 10

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

Ghost UGREEN NAS Set up 5

  • STEP 11

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 Ghost local Port that is 2368
Check Block Common Exploits
Check Websockets Support
Click the SSL tab. Follow the instructions in the image below.

Ghost UGREEN NAS Set up 6

  • STEP 12

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
Email Address for Let’s Encrypt: Type in your own Email Address.
Check: I Agree to the Let’s Encrypt Terms of Service.
Click Save. Follow the instructions in the image below.

Ghost UGREEN NAS Set up 7

  • STEP 13

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

Ghost UGREEN NAS Set up 8

  • STEP 14

🟢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 15

Please wait approximately 2 minutes for the installation to be completed. If you try to connect too soon, you will get an error page that says: We’ll be right back. We’re busy updating our site to give you the best experience, and will be back soon. Now open your browser and type in https://yourname.ddns.net/ghost/ In my case https://mariusghost.ddns.net/ghost/ If everything goes right, you will see the Ghost installation page. Note: Don’t forget to add /ghost/ at the end of your DDNS to access your dashboard. Add your own Site title, your Full name, your Email address and choose a strong Password. Click Create account & start publishing. Follow the instructions in the image below.

Ghost UGREEN NAS Set up 9

  • STEP 16

After the registration, you will get an email message. Check your Email. Follow the instructions in the image below.

Ghost UGREEN NAS Set up 10

  • STEP 17

Start customizing your new Ghost website. Switch the theme to Dark, then click the Setting icon. Follow the instructions in the image below.

Ghost UGREEN NAS Set up 11

šŸ†˜TROUBLESHOOTING

Note: Your live website will be at https://yourname.ddns.net and your administrator dashboard will be at https://yourname.ddns.net/ghost/

This post was updated on Tuesday / May 27th, 2025 at 3:50 PM