How to Install Strapi on Your Synology NAS

How to Install Strapi on Your Synology NAS

Strapi is an open-source, Node. js based, Headless CMS that saves developers a lot of development time while giving them the freedom to use their favorite tools and frameworks. Strapi also enables content editors to streamline content delivery (text, images, video, etc) across any devices. In this step by step guide I will show you how to install Strapi 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 two new folders and name one strapi and one mariadb. Follow the instructions in the image below.
Note: Be careful enter only lowercase, not uppercase letters.

Strapi Synology NAS Set up 1

  • STEP 4

Log into Portainer using your username and password. On the Portainer left sidebar click on Stacks then + Add stack. Follow the instructions in the image below.

Strapi Synology NAS Set up 2

  • STEP 5

In the Name field type in strapi. Follow the instructions in the image below.

Note: In the Portainer Stacks Web editor Copy Paste the code below.

version: '3'
services:
  strapi:
    image: strapi/strapi
    environment:
      DATABASE_CLIENT: mysql
      DATABASE_HOST: mariadb
      DATABASE_PORT: 3306
      DATABASE_NAME: strapi
      DATABASE_USERNAME: strapi
      DATABASE_PASSWORD: strapi
      DATABASE_SSL: 'false'
    volumes:
      - /volume1/docker/strapi:/srv/app
    ports:
      - '1337:1337'
    depends_on:
      - mariadb

  mariadb:
    image: mariadb
    volumes:
      - /volume1/docker/mariadb:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: strapi
      MYSQL_DATABASE: strapi
      MYSQL_USER: strapi
      MYSQL_PASSWORD: strapi

Strapi Synology NAS Set up 3

  • STEP 6

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.

Strapi Synology NAS Set up 4

  • STEP 7

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

Strapi Synology NAS Set up 5

  • STEP 8

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

  • STEP 9

The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection.

  • STEP 10

After the installation process is over, wait approximately 5-10 minutes before you try to connect (those 5-10 minutes are needed to fully complete the installation). Now open your browser and type in http://Synology-ip-address:1337 Click Create the first administrator. Follow the instructions in the image below. If the page is blank this means the installation is not ready, just wait a few more minutes.

Strapi Synology NAS Set up 6

  • STEP 11

Add your First name and Last name then add your own Email and Password. Click LET’S START. Follow the instructions in the image below.

Strapi Synology NAS Set up 7

Enjoy Strapi!

Strapi Synology NAS Set up 8

Note: If you want to run Strapi container over an HTTPS check How to Run Docker Containers Over HTTPS.

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: Find out how to update Strapi container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.

This post was updated on Monday / August 16th, 2021 at 1:13 AM