30-Second Installation of Portainer, a Must-Have Tool for Nas

😒 Have you ever envied others for being able to build so many fun applications while you struggle with “not knowing how to code”?

Alt text
Pic

And their so-called “simple tutorials” are like this:

Alt text
Pic

Have you ever been intimidated by tutorials that are “too complicated”?

Alt text
Pic

Do you wish to make everything “a little simpler”?

Today, I will teach you how to install Portainer, a must-have tool for Nas, in just 30 seconds.

  1. Randomly express your thoughts without worrying about others seeing them.
  2. Completely save them on your Nas.
  3. Invite your good friends to come and have fun, share funny pictures.

How much trouble do you think this would be? With Portainer, it only takes 2 steps:

Alt text
Pic

1
2
3
4
5
6
7
8
9
version: "3.0"
services:
  memos:
    image: neosmemo/memos:latest
    container_name: memos
    volumes:
      - /volume1/docker/memos/:/var/opt/memos
    ports:
      - 5230:5230

Alt text
Pic

💕Done!

In the future, this channel will share many interesting and fun private services in Nas, all taught simply using Portainer.

Next, let’s get to the point of “how to build Portainer in Synology Nas”.

The whole process “does not require any code”, just use Synology’s “Task Scheduler”.

Portainer is a lightweight Docker container management tool.

Its advantages are:

  1. UI interface (easy operation)
  2. Easy deployment (more useful and fun services will be shared in the future)
  3. Multi-platform support (Synology, QNAP, Linux, Windows)
  4. Easy management (network, images, containers)

With it, we can easily build various services in Nas. In the future, I will also share various services I have built in Nas, and Portainer is indispensable here.


Follow for free, never get lost.

In Synology Package Center, search for:

  1. Docker (for Synology versions below 7.2)
  2. Container Manager (for Synology versions 7.2 and above)

Alt text
Pic

Open File Station, go to the “docker” folder, and create a “portainer” folder.

Alt text
Pic

In Synology “Control Panel”, find “Task Scheduler”, click on “User-defined script” in “Scheduled Tasks”.

Alt text
Pic

First, configure the settings: Schedule Settings -> Task Settings

Paste the code:

1
2
3
4
5
6
7
docker run -d --name=portainer \
-p 8000:8000 \
-p 9000:9000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /volume1/docker/portainer:/data \
--restart=always \
portainer/portainer-ce

Alt text
Pic

Alt text
Pic

Alt text
Pic

Click on “Run”.

Alt text
Pic

Due to issues with the domestic network, there may be situations where the image cannot be pulled. Therefore, it is necessary to confirm. If it still doesn’t work, you can set up a domestic source.

Two verification methods - choose one

Alt text
Pic

You can also check if Portainer has been successfully pulled in the docker suite

Alt text
Pic

Set a password

Alt text
Pic

  1. Initialize environment variables
  2. Set the local IP in the environment variables for easy access (the local IP is the IP address of your local Synology NAS)

Alt text
Pic

Alt text
Pic

Alt text
Pic

What to do with annoying Business upgrade reminders in Portainer?

Use various browser ad blockers to block them

Alt text
Pic

Alt text
Pic

Alt text
Pic

Alt text
Pic

Congratulations, you have entered the brand new NAS world

Follow Daddy’s Digital Garden

Share interesting NAS toys and private cloud deployments.