WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes. In this step by step guide I will show you how to install WordPress on your Synology NAS using Docker & Portainer.
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 Synology NAS, skip this STEP.
STEP 3
Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it wordpress. Follow the instructions in the image below.
STEP 4
Log into Portainer using your username and password. On the Portainer left sidebar click on Stacks. After you click on Stacks, a new screen will open. In the Name field type in wordpress. Follow the instructions in the image below.
version: '2.9' services: wordpress: image: wordpress restart: always ports: - 8181:80 environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: exampleuser WORDPRESS_DB_PASSWORD: examplepass WORDPRESS_DB_NAME: exampledb volumes: - /volume1/docker/wordpress:/var/www/html links: - db:db db: image: mysql:5.7 restart: always environment: MYSQL_DATABASE: exampledb MYSQL_USER: exampleuser MYSQL_PASSWORD: examplepass MYSQL_RANDOM_ROOT_PASSWORD: '1' volumes: - db:/var/lib/mysql
STEP 5
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 6
If everything goes right, you will see this message at the top right of your screen: “Stack successfully deployed“.
STEP 7
Go back to STEP 1 or you will deal with karma 🙂.
STEP 8
Now open your browser and type in http://Synology-ip-address:8181/ Follow the instructions in the image below.
Add WordPress Site Title, Username, Email and Password the click Install WordPress. Enjoy your WordPress!
Note: Find out how to update WordPress container with the latest image.
Note: Can I run Docker on my Synology NAS? See the supported models.
Note: I don’t use WordPress via Docker to host mariushosting blog. I use the MariaDB 10, phpMyAdmin and PHP packages from Synology Package Center. This help me to backup every little settings with Hyper Backup.
This post was updated on Wednesday / January 6th, 2021 at 1:24 AM