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. If you don’t want to use Docker and Portainer for install nextcloud I recommended you to use my standard step by step guide for nextcloud.
Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP.
Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it nextcloud. Follow the instructions in the image below.
Inside the nextcloud folder create 5 new folders. Follow the instructions in the image below.
Log into Portainer using your username and password. On the Portainer left sidebar click on Stacks. After you click on Stacks, a new screen will open. In the Name field type in nextcloud. Follow the instructions in the image below.
version: '2.9' services: mariadb: container_name: mariadb image: mariadb command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW restart: always volumes: - mariadb:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=rootpassword - MYSQL_PASSWORD=mysqlpassword - MYSQL_DATABASE=nextcloudatabasename - MYSQL_USER=nextclouduser nextcloud: container_name: nextcloud ports: - 8082:80 links: - mariadb environment: - PUID=1026 - PGID=100 - TZ=Romania/Bucharest volumes: - /volume1/docker/nextcloud/html:/var/www/html - /volume1/docker/nextcloud/custom_apps:/var/www/html/custom_apps - /volume1/docker/nextcloud/config:/var/www/html/config - /volume1/docker/nextcloud/data:/var/www/html/data - /volume1/docker/nextcloud/themes:/var/www/html/themes/ image: nextcloud restart: always volumes: mariadb: # nextcloud
After you paste the code in the Web editor, change the value for TZ (Select your current Time Zone from this list).
After you paste the code in the Web editor, change the value numbers for PUID and PGID with your own values. (Follow my step by step guide on how to do this.)
Note: If you have your docker folder in a different volume, then change /volume1/docker/nextcloud according to your settings. For example: /volume2/docker/nextcloud or /volume3/docker/nextcloud etc.
Note: If you decide to use mariaDB remember to change user, database, root password and database password.
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: “Stack successfully deployed“.
Go back to STEP 1. Remember that this is a free guide. Please support the content creator you love. 🙂
Now open your browser and type in http://Synology-ip-address:8082/ Follow the instructions in the image below. Create an admin account. Select Database, I have choose the SQLite instead mariaDB. Check “Install recommended apps” if you want to install apps. The installation process of the app can take up to a few minutes. Click Finish Setup.
Note: You can choose the mariaDB instead SQLite database. If you decide to do that, remember to add your own credentials you have previously created on STEP 5.
After you click Finish Setup, recommended apps will be installed.
After all apps is installed enjoy your Nextcloud via Docker.
Note: Find out how to update Nextcloud container with the latest image.
Note: Can I run Docker on my Synology NAS? See the supported models.
Note: I don’t use nextcloud via Docker I use the standard installation method for nextcloud. This helps me to do serious backups.
This post was updated on Tuesday / September 22nd, 2020 at 2:40 AM