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. Attention: Make sure you have installed the latest Portainer version.
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.
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.
In the Name field type in strapi. Follow the instructions in the image below.
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
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: “Success 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.
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.
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 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