You can install Docker through the Synology DiskStation Manager (DSM) Package Center.
Just search for "docker" and follow the wizard to install docker.
You will need to have SSH enabled from the Synology DSM control panel. Please feel free to skip this step if you've already done that.
Use the File Station from Synology DSM to create a new folder in one of your volumes. I created the folder in my docker
folder.
You need to ensure the user you will SSH with has permissions to create files and folders inside the docker
folder.
Create a new file (which I called nextcloud.yaml) in the folder you just created.
As per the official docs, you have to set the values for MYSQL_ROOT_PASSWORD
and MYSQL_PASSWORD
in the following yaml.
IMPORTANT: I also had to change the command
attribute of the mariadb service, to address the following error:
Error while trying to initialise the database: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 4047 InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
NOTE: By default, my admin user didn't have permissions to run docker
commands, so I had to use sudo
. It was somewhat confusing that the password requested by sudo
was the password of the same user I was logged in as (the user was an administrator).
You can access the nextcloud web UI at: http://your.nas.ip.address:8080.
You will then see the following screen:
Go ahead and add a username/password for your administrator.
I also enabled the installation of the recommended apps, so I can explore what nextcloud has to offer (I am currently a first-time nextcloud user). This took a bit of time. If everything goes well, you'll see the following screen.
Once the installation is completed, you will see this screen:
Next step: use nextcloud as the replacement for iCloud photos!