Skip to content

Nextcloud with HTTPS connection on a QNAP NAS

License

Notifications You must be signed in to change notification settings

megamays08/qnap-nextcloud

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

qnap-nextcloud

Requirements

  • Latest QNAP Firmware Installed.
  • Container Station Installed & Updated.
  • Understand how to access your QNAP via SSH. Access my QNAP NAS using SSH

User Creation

Create a new user which will be used for docker containers, so that they are not running as root (primarily for security reasons). Go to "Users" from the main screen QTS, select "Create User" and create a user called "dockeruser"

User Creation

Folder Creation

Create a new shared folder that we will keep all docker appdata in. Load up "File Station" and create a new share by clicking on the + next to the Data Volume.

Folder Creation

Call the folder Docker and give full read/write access to this folder to the newly created dockeruser. Everything else can be left as default.

Folder Privileges

Once the Docker folder is created, create another folder called nextcloud within the Docker folder.

Get User IDs

Now the UID/GID of the user dockeruser need to be figured out. Use your favourite method to ssh into the QNAP NAS and run the following command:

id <username>

Replace with the user you created earlier (dockeruser). The result of the command should look like this:

Result:

[~] # id dockeruser
uid=500(dockeruser) gid=100(everyone) groups=100(everyone)
[~] #

Note the UID and the GID and replace the ID's in the docker-compose.yml file (see comments in the docker-compose file).

Container Creation

Create a new container based on the docker-compose.yml file.

Container Creation

Open the Container Station and select Create from the management menu. Click on the Create Application button.

Create Container Application

Download the docker-compose.yml from the repository and replace the passwords and the dockeruser id/group (see comments in the docker-compose file).

Choose a name for the Container and paste the content of the docker-compose.yml into the YAML section and click on the create button.

Setup Nextcloud

After the container is created, open the Nextcloud web interface on https://NAS-IP:9443/

Nextcloud Settings

Fill in the credentials for the administrator account.

Select MySQL/MariaDB as database and use the database credentials defined in the docker-compose.yml file. (MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE, container_name)

Click Install to finish the Nextcloud setup.

Update Container

To keep everything up to date the containers and the Nextcloud installation have to be updated.

Stop Container

Stop the running Nextcloud container.

Edit Container

Press on edit and copy the docker-compose file of the Nextcloud container (which contains the actual passwords, user Id, user group).

Delete Container

Press on delete to delete the existing Container (Alle user specific data is stored outside of the container).

Remove Images

Select Images from the management menu and remove the images linuxserver/nextcloud and linuxserver/mariadb.

Container Creation

Select Create from the management menu. Click on the Create Application button.

Create Container Application

Choose a name for the Container and paste the previously copied docker-compose file into the YAML section and click on the create button.

After the container is created, it uses the latest images.

Update Nextcloud

After updating the container open the Nextcloud web interface on https://NAS-IP:9443/ and login as administrator. Go to the settings and use the built-in updater to update the Nextcloud installation. See the Nextcloud documentation for more details.

Links

About

Nextcloud with HTTPS connection on a QNAP NAS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published