Cover image for How to setup Ghost on Synology Docker

How to setup Ghost on Synology Docker

Ghost has recently started to support MySQL and dropped support for SQLite.

Here’s how you can set it up on Synology Docker.

Prerequisites

  1. Go to Package Center and install Docker

  2. Go to File stations and navigate to Docker folder

  3. Create two folders, ghost-app and ghost-db

  4. Open Docker on Synology and select Registry tab

  5. Search for Ghost and MySQL, download both with latest tag
    Image

  6. Buy me a drink on Ko-fi :)

Create MySQL Container

  1. Go to Container tab and Create a Container:

    • Select Image: mysql
    • Network: bridge
    • Container Name: ghost-db
  2. Go to Advanced Settings

  3. Add the following Enviroment variables:

    • MYSQL_ROOT_PASSWORD = mysqlrootpassword
    • MYSQL_DATABASE = ghost
    • MYSQL_USER = ghostuser
    • MYSQL_PASSWORD = ghostpass
  4. Review, click Save, then Next
    Image

  5. Leave the Port settings as default, click Next

  6. Click Add Folder, navigate to the ghost-db folder

  7. Add the mount path as /var/lib/mysql
    Image

  8. Click Next and Done
    Before you continue, be sure to check that the DB is ready. This should take ~5 mins.
    While waiting, go to Prerequisites Step 6.

  9. Double-click the Container and go to Logs tab

  10. Look for the line that says /usr/sbin/mysqld: ready for connections.

Create Ghost Container

  1. Go to Container tab and Create a Container:

    • Select Image: ghost
    • Network: bridge
    • Container Name: ghost-app
    • Enable auto-restart
  2. Go to Advanced Settings

  3. Add the following Enviroment variables:

    • database__client = mysql
    • database__connection__host = ghost-db
    • database__connection__port = 3306
    • database__connection__user = ghostuser
    • database__connection__password = ghostpass
    • database__connection__database = ghost
    • url = http://[NAS IP Address]:2368
      Image
  4. Select Links tab and click Add

  5. Select the Container name that you’ve created for MySQL, eg. ghost-db

  6. Click Save, then Next

  7. Set the Local Port to 2368, click Next

  8. Click Add Folder, navigate to the ghost-app folder

  9. Add the mount path as /var/lib/ghost/content
    Image

  10. Click Next and Done

Go get a coffee and send me a tip as this will take at least 10 mins and if you go to your NAS IP Address with the port you’ve defined above on a browser, eg. http://192.168.1.10:2368

You’ll be greeted a working in progress screen.

Once that is completed, go to /ghost to begin the setup.


← Tapbots Releases New Ivory …
How to update IP address on … →