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.

Note: This guide works perfectly with the latest Strapi v4.5.2 release.

  • 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. Attention: Make sure you have installed the latest Portainer version.

  • 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 to use only lowercase, not uppercase letters.

Strapi Synology NAS Set up 1 2022

  • STEP 4

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

1 Synology Portainer Add Stack

  • STEP 5

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

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

version: '3.7'
services:
  strapi:
    image: strapi/strapi
    container_name: 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
    container_name: Strapi-DB
    volumes:
      - /volume1/docker/strapidb:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: strapi
      MYSQL_DATABASE: strapi
      MYSQL_USER: strapi
      MYSQL_PASSWORD: strapi

1 Strapi Synology NAS Set up

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

2 Strapi Synology NAS Set up

  • STEP 7

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

3 Strapi Synology NAS Set up

  • 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

Please wait approximately 10 minutes for the installation to be completed or you will get a blank page if you try to connect too soon.. 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 process is not ready yet; 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 6 2022

Note: If you want to run the Strapi container over HTTPS, check out my guide on 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 the Strapi container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.

This post was updated on Sunday / November 27th, 2022 at 12:39 AM