Synology: How to Install WordPress Using Docker

Synology How to Install WordPress Using Docker

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.

1 Synology NAS WordPress Docker container set up

  • 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.

Note: In the Portainer Stacks Web editor Copy Paste the code 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

2 Synology NAS WordPress Docker container set up

  • 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.

3 Synology NAS WordPress Docker container set up

  • STEP 6

If everything goes right, you will see this message at the top right of your screen: “Stack successfully deployed“.

4 Synology NAS WordPress Docker container set up

  • STEP 7

Go back to STEP 1. Remember that this is a free guide. Please support the content creator you love. 🙂

  • STEP 8

Now open your browser and type in http://Synology-ip-address:8181/ Follow the instructions in the image below.

5 Synology NAS WordPress Docker container set up

Add WordPress Site Title, Username, Email and Password the click Install WordPress. Enjoy your WordPress!

6 Synology NAS WordPress Docker container set up

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 Tuesday / September 22nd, 2020 at 2:51 AM