Fork me on GitHub

Herr Knedel/Great things with containers: Portainer as an alternative to Synology Docker GUI

Created Sun, 25 Apr 2021 09:28:11 +0100 Modified Mon, 28 Mar 2022 18:09:51 +0000 Difficulty level: It may take a little longer

225 Words

Step 1: Prepare Synology

The first thing to do is to enable SSH login on Diskstation. To do this, go to the “Control Panel” > “Terminal

After that you can log in via “SSH”, the specified port and the administrator password (Windows users take Putty or WinSCP). I log in via Terminal, winSCP or Putty and leave this console open for later.

Step 2: create portainer folder

I create a new directory called “portainer” in the Docker directory.

Then I go to the portainer directory with the console and create a folder and a new file called “portainer.yml”.
x
+
Terminal

$ cd /volume1/docker/portainer
$ mkdir portainer_data
$ vim portainer.yml

Here is the content of the “portainer.yml” file:

version: '3'

services:
  portainer:
    image: portainer/portainer:latest
    container_name: portainer
    restart: always
    ports:
      - 90070:9000
      - 9090:8000
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./portainer_data:/data

More useful Docker images for home use can be found in the Dockerverse.

Step 3: Portainer start

I can also make good use of the console in this step. I start the portainer server via Docker Compose.

x
+
Terminal

$ sudo docker-compose -f portainer.yml up -d

After that I can call my Portainer server with the IP of the diskstation and the assigned port from “Step 2”. I enter my admin password and choose the local variant. As you can see, everything works great!