Nextcloud inside Synology Docker
Download the image
- Open the Docker application inside the DSM portal
- Select Registry in the left menu
- Use the search box on the right and search for nextcloud
- Once the nextcloud image was found, right click it and choose Download this image
- You can select the version you want to download, default: latest
- If you open the image menu von the left you will see an animated database logo next to your new image. It proofs that the download is in progress.
- DSM will show a notification (top right) once the download has finished
Launch the image (create a container)
- Click on image in the left menu
- On the right click on the next cloud image you just downloaded
- Click on Launch in the top menu
- In the popup window click on advanced settings
- Check enable auto-restart
- Change to the volume tab and click on add folder
- Select the docker folder and click create folder
- Give it the name nextcloud
- Back in the advanced settings window you need to assign a mountpoint for your new folder: /var/www/html
This will give you read/write access via //YOURNAS/docker/nextcloud to the internal /var/www/html directory inside the container
- Under the port settings tab change Auto to a free port which is available on your NAS, like 8080
- Finish the wizard
tbd
- Here is what I did:
I don't use any admin interfaces for MySQL so all of this was done from the command line. If your using phpmyadmin or something, I have no experience with it.
I logged into the MySQL console and removed the owncloud database and removed the oc_admin entries from the mysql.user.
I created a new database called owncloud-
create database owncloud;
I then created a user for that database-
grant all privileges on owncloud.* to 'oc_admin'@'localhost' identified by 'mypassword';
I went back to the web install page and entered the following information-
Admin section:
username - admin
password - mychosenpassword
MySQL section:
username - oc_admin
password - mypassword
database - owncloud
host - localhost