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.
Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP.
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.
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.
In the Name field type in strapi. Follow the instructions in the image 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
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.
If everything goes right, you will see this message at the top right of your screen: “Stack successfully deployed“.
Go back to STEP 1 or you will deal with karma 🙂.
The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection.
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.
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.
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