How to Install Ghost on Your Synology NAS

How to Install Ghost on Your Synology 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. In this step by step guide I will show you how to install Ghost on your Synology NAS using Docker.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Docker via Synology “Package Center”.

Install Docker Synology DSM 7

  • STEP 3

Follow my step by step guide on how to activate your synology.me DDNS on DSM 7
Follow my step by step guide on how to activate your synology.me DDNS on DSM 6.2.4
Note: If you already own a synology.me DDNS, skip this STEP.

  • STEP 4

Add A Wildcard Certificate to your synology.me DDNS.
Note: If you already own a synology.me Wildcard DDNS certificate, skip this STEP.

  • STEP 5

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

Ghost Synology NAS Set up 1

  • STEP 6

Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the image below.

Ghost Synology NAS Set up 2

  • STEP 7

Once you click on User-defined script, a new window will open. Follow the instructions below:

  1. General: In the Task field type in Install Ghost. Uncheck the “Enabled” option. Select root User.
  2. Schedule: Select Run on the following date then select “Do not repeat“.
  3. Task Settings: Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that, click OK.
docker run -d --name=ghost \
-p 2368:2368 \
-e url=https://ghost.yourname.synology.me \
-v /volume1/docker/ghost:/var/lib/ghost/content \
--restart always \
ghost

Note: Before you paste the code above in the Run command area below, change the -e url= value with your own subdomain and synology.me DDNS. As you can see in the screenshot below, I have used my own synology.me DDNS plus a subdomain: https://ghost.mariushosting.synology.me

ghost is a subdomain – you can choose any name you want; it doesn’t have to be ghost.
mariushosting
is my own name; you have to use your own name.
synology.me
is the DDNS itself.

Ghost Synology NAS Set up 3

Note: You can also use your own domain name, but in this case there are some additional STEPS needed so it’s better to contact me about it.

  • STEP 8

After you click OK on STEP 7 a new warning pop up window will open. Click OK.

Ghost Synology NAS Set up 4

  • STEP 9

After you click OK on STEP 8, select your “Install Ghost” Task then click the “Run” tab. You will be asked to run Install Ghost – click Yes. Follow the instructions in the image below.

Ghost Synology NAS Set up 5

  • STEP 10

Go to Control Panel / Login Portal / Advanced Tab / click Reverse Proxy. Follow the instructions in the image below.

Ghost Synology NAS Set up 6

  • STEP 11

Now click the “Create” button. Follow the instructions in the image below.

Ghost Synology NAS Set up 7

  • STEP 12

After you click the Create button, the window below will open. Follow the instructions in the image below.

On the General area, set the Reverse Proxy Name description: type in Ghost. After that, add the following instructions:

Source:
Protocol: HTTPS
Hostname: ghost.yourname.synology.me
Port: 443

Destination:
Protocol: HTTP
Hostname: localhost
Port: 2368

Ghost Synology NAS Set up 8

  • STEP 13

Go back to STEP 1 or you will deal with karma 🙂

  • STEP 14

Now open your browser and type in https://ghost.yourname.synology.me/ghost In my case https://ghost.mariushosting.synology.me/ghost If everything goes right, you will see the Ghost installation page. Click Create your account. Follow the instructions in the image below. Note: Don’t forget to add /ghost at the end of your DDNS to access your dashboard.

Ghost Synology NAS Set up 9

  • STEP 15

After you click Create your account at STEP 14, add your Site title, your Full name, your Email address and choose a strong password, then click Last step: Invite staff users. Follow the instructions in the image below.

Ghost Synology NAS Set up 10

  • STEP 16

If you don’t want to invite other staff members to your website, just click I’ll do this later; take me to my site! Follow the instructions in the image below.

Ghost Synology NAS Set up 11

  • STEP 17

Start creating your first Post! Click the + on the menu in the left sidebar! Follow the instructions in the image below.

Ghost Synology NAS Set up 12

  • STEP 18

After you write your first post, click on “Publish” at the top right, then Publish. Your article will be instantly online and visible worldwide! Follow the instructions in the image below.

Ghost Synology NAS Set up 13

Enjoy Ghost!

Ghost Synology NAS Set up 14

Note: Your live website will be at https://ghost.yourname.synology.me and your administrator dashboard will be at https://ghost.yourname.synology.me/ghost
Note: Can I run Docker on my Synology NAS? See the supported models.
Note: Find out how to update the Ghost container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: You can also use your own domain name, but in this case there are some additional STEPS needed, so it’s better to contact me.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.

This post was updated on Sunday / January 16th, 2022 at 1:05 PM