Nextcloud Synology Docker Install

I don't know if it can be considered a bug, but I invested several days to be able to use the docker image with the volumes on NFS (synology) without great results. My env: Docker version: 19.03.7 Docker image: nextcloud:18.0.1-apache In.

  1. Docker Install Windows
  2. Nextcloud Auf Synology Docker Installieren
  3. Nextcloud Synology Docker Install For Pc
  4. Install Nextcloud On Synology Docker
  1. Once install has finished open up MariaDB from your main menu and change the default password ( blank ) and volume location if needed. Setting up Nextcloud Point your browser to your Nextcloud server virtual host and now you should see a Nextcloud setup page! Now enter in your details accordingly.
  2. Would be good if you could lend your expertise to a step-by-step Docker install of Nextcloud on a Synology NAS. November 11, 2020 at 7:12 am.
  3. Jul 01, 2021 Nextcloud is a suite of client-server software for creating and using file hosting services. Nextcloud is free and open-source, which means that anyone is allowed to install and operate it on their own private server devices. In this step by step guide I will show you how to install Nextcloud on your Synology NAS using Docker & Portainer.

Homebridge is a lightweight NodeJS server you can run on your home network that emulates the iOS HomeKit API. Homebridge allows you to integrate with smart home devices that do not support the HomeKit protocol. After installing Homebridge, it remains running and connected to your network, ready to service requests from Siri. In this step by step guide I will show you how to install Homebridge on your Synology NAS using Docker. You can also use HOOBS for your smart home devices.

Note: This guide works perfectly with the latest Homebridge 1.3.4 release.

This post should tell you everything you need to know to install Nextcloud instance on your Synology NAS without using Docker. I previously published a post on how to setup Pi-Hole on a Synology and since then a number of people have asked for a guide on how to install Nextcloud on a Synology. After lots of tinkering, this post is the result. This is a stark difference from Synology’s Docker GUI, as you can back up the important container data, but you can’t port it over to a different operating system easily. A few downsides of Docker Compose on a Synology NAS: Everything is done through the command-line interface (CLI).

Please Support My work by Making a Donation.

Install Docker via Synology “Package Center”.

Synology Can't Install Docker

Open the Docker Package. From the Docker Console, go to Registry and search homebridge. Look for oznu/homebridge and select it, then click Download or double click on it. You will be prompted to Choose Tag, select latest. Follow the instructions in the image below.

After you click “Select”, the download process of the homebridge docker container will start. You can click on Image on the Docker Console to see the download progress. The current container is about 583 MB. Follow the instructions in the image below.

After the download is completed from the Docker Console, go to Image, then select the oznu/homebridge:latest container. Click Launch. Check “Execute container using high privilege”, then click Advanced Settings. Follow the instructions in the image below.

Install Transmission Docker Synology

Select Enable auto-restart. Follow the instructions in the image below.

Go to File Station and open the docker folder. Inside the docker folder, create a new folder and name it Homebridge. Follow the instructions in the images below.

Your docker folder will look like this:

Now go back to the Docker Package. Next tab – “Volume“. Select Add Folder. Choose the homebridge folder inside the docker folder, then click Select. Follow the instructions in the image below.

After you click Select, type /homebridge inside Mount path for the data folder. Follow the instructions in the image below. Your Volume will look like this:

Next tab – “Network“. Choose “Use the same network as Docker Host“.

Next tab – “Port Settings“ move forward without doing anything (no action needed).
Next tab – “Links“ move forward without doing anything (no action needed).
Next tab – “Environment“. Click the + to add the variable and Value.
On the variable area type: DSM_HOSTNAME and on the Value area add: Your NAS Server Name Read STEP 12 B below on how you can find this value.
After that, click Apply. Follow the instructions in the images below.

How can I find my DSM_HOSTNAME Value? Go to Control Panel / Info Center / Network. Search for Server name. Follow the instructions in the image below.

After clicking “Apply“ on STEP 12 A, the screen below will open. Click “Next“. Follow the instructions in the image below.

Synology Install Gitlab Docker

After clicking “Next“, the screen below will open. Select “Run this container after the wizard is finished” then click “Apply“. Follow the instructions in the image below.

Your container will look like this:

Go back to STEP 1 or you will deal with karma 🙂

Now open your browser and type in http://Synology-ip-address:8581/ Follow the instructions in the image below. Username and Password are admin and admin.

You can change Username and Password after the first login. Follow the instructions in the image below.

Enjoy your Homebridge hosted on your Synology NAS!

Read the step by step guide on How to Allow Homebridge to Work Over an HTTPS Connection.

Note: You can easily change the admin user and password by clicking the 3 dots at the top right in homebridge home.
Note
: Find out how to update Homebridge container with the latest image.
Note: I recommend you use Reverse Proxy to allow Homebridge to work over an HTTPS connection.
Note: Can I run Docker on my Synology NAS? See the supported models.

This post was updated on Monday / March 22nd, 2021 at 10:41 PM


In this tutorial, we are going to use Docker compose to install the NextCloud official Docker image with Portainer.

To start​


This is going to be just one of many ways to install NextCloud. I am going to show you my way.
First, you need to have Docker installed on your NAS (if it's supported).

Docker Install Windows


Now install Portainer. You can use @Rusty's tutorial: Docker - Portainer - Docker container managment made easy

Database​


Now that we have all the required tools, first, install the MariaDB using this tutorial: Docker - MariaDB - one of the most popular database servers
You can also use MySQL or PostgreSQL, but in this tutorial, we are using MariaDB.
For accessing the database I use phpMyAdmin: Docker - phpMyAdmin - A web interface for MySQL and MariaDB
Login to phpMyAdmin and create a database for Nextcloud. Write down your database name, database user, and password. You are going to need this later.

NextCloud​


First, make sure to create folders for Nextcloud in your FileStation before you enter the docker-compose code.
I am using this location: docker/nextcloud

Nextcloud Auf Synology Docker Installieren

. and this is on Volume 1:
  • /volume1/docker/nextcloud/html
  • /volume1/docker/nextcloud/custom_apps
  • /volume1/docker/nextcloud/config
  • /volume1/docker/nextcloud/data
  • /volume1/docker/nextcloud/themes


Now we are going to use the official image: https://hub.docker.com/_/nextcloud.
Login to your Portainer and create a Stack (read more about how to use stacks here: Docker - Portainer - using stacks (docker-compose)).
Now use this docker-compose:

We are using the latestDocker install windows image.
Use NEXTCLOUD_TRUSTED_DOMAINS variable if you are using a custom domain, otherwise, you can remove it.

Use OVERWRITEPROTOCOL=https variable to redirect your domain to HTTPS protocol. If you won't use your custom domain for NextCloud and use it only locally, then you can remove this variable too.

You can change the port if you wish (the left number only).
Make sure to change the PUID and PGID to your http

Nextcloud Synology Docker Install For Pc

user ID and group (Tutorial - How to find UID (userID) and GID (groupID)?).
Change TZ to your timezone.
The next three variables are for the database. Make sure to use the right credentials.
*Note that I like to have the database separated and not in the same stack, but you can combine it together in one stack.

Install Nextcloud On Synology Docker


For host use yourNASip:databaseLocalPort.

Deploy the stack and that should be enough. Open NextCloud on yourNASip:nextcloudPort. Continue with the guided NextCloud installation.
Nextcloud synology docker install for chromeAs already said, this can be done in many ways. I hope this way will help someone to install NextCloud.
Related resources

Docker - phpMyAdmin - A web interface for MySQL and MariaDB

phpMyAdmin - A web interface for MySQL and MariaDB In this tutorial, we are going to use this image: phpmyadmin/phpmyadmin In DSM go to Docker -> Registry and search for phpmyadmin: Download the second result, phpmyadmin/phpmyadmin image...

Docker - MariaDB - one of the most popular database servers

Mariadb is one of the most popular database servers. Made by the original developers of MySQL. In this tutorial, we are going to use this image: linuxserver/mariadb In DSM go to Docker -> Registry and search for mariadb: Download the second...

Tutorial - How to find UID (userID) and GID (groupID)?

First, you need to SSH into your NAS. When you are in your NAS with the user you want the ID for, just type id and hit Enter. Now you'll get something like this: uid=1031(your_nas_user) gid=100(users) groups=100(users), 101(administrators)...

Docker - Portainer - Docker container managment made easy

This short article will be about Docker management. I meant to write it up sooner but always pushed it back because everything can be done using the command line. If you are into Docker or just starting, you will know (or soon find out) that it...

Docker - Portainer - using stacks (docker-compose)

Back in September 2020, I wrote a short article on how to get Portainer up and running as well as connecting it with multiple Docker hosts using the Portainer agent. With that article, you have all you need to get up and running. In this...