Docker is a computer program that performs operating-system-level virtualization, also known as "containerization". It was first released in 2013 and is developed by Docker, Inc. Docker is used to running software packages called "containers".
All the steps below are performed on Synology DS218+
First of all, we need to install the Docker package on the NAS. It doesn't require special configuration, just go to the Package Center, search Docker, and install it. That is it.
There is a phpMyAdmin package which helps manage installed MariaDB databases, users, and other stuff related to the database. So, I'd recommend installing that package as well.
I've created a new
blog database in phpMyAdmin as well as a separate user for the database.
After that, we are good to go to deploy Ghost in the Docker.
In the Docker package in the Registry, search and download
after that, the image will be available in the Images, where the
ghost image should be selected and launched, as on the screenshot below
Below I'll provide the settings for the container I used
I use Low CPU Priority setting along with 256Mb Memory Limit
Prior the Volume configuration
docker/personal/ghost should be created on the storage, it will allow the docker container write data to the storage through
/var/ghost/content directory, i.e. save changes like a theme, images when the container is restarted.
Any unused NAS local port could be used for the Port Settings. The most important part is Environment, see the values I used to make it works.
After applying these steps Ghost container should be up and running.
And available locally e.g. by local IP address http://192.168.1.2:8080. To make the blog available outside and have a domain name like https://blog.fisenko.page(also see Configuring Synology NAS to use own domain name) go to the Control Panel, Application Portal, Reverse Proxy and create a configuration for HTTP and HTTPS protocols:
After these manipulations, the blog will be accessible from the Internet.
Hopefully, you will find these instructions useful. Thank you! 🙏