Nextcloud - the self-hosted productivity platform that keeps you in control

Docker Nextcloud - the self-hosted productivity platform that keeps you in control

nextcloud.png

Nextcloud is the most deployed on-premises file share and collaboration platform. Access & collaborate across your devices. Your data remains under your control.

Official site:


This tutorial is mostly for newcomers and those that are not so familiar with the Docker. I'm not an expert, but I want to share my installation as a tutorial to help others. Feel free to comment in the discussion section of this resource.
In this tutorial, we are going to use this Docker build for Nextcloud: linuxserver/nextcloud


Before you start with the installation of this image you need to create a database and user for that database with a password. I use PHPMyAdmin and MySQL for this.

Let's begin with the installation.

linuxserver/nextcloud container

Launch linuxserver/nextcloud container
  1. Go to the Registry tab in your Docker and search for linuxserver/nextcloud
  2. Click on linuxserver/nextcloud, click the Download button and choose latest build
  3. Wait for the image to download
  4. Go to Image tab and find linuxserver/nextcloud. Select it and click on button Launch


Continue in the Container creation wizard and choose Advanced settings.


General settings tab
Set Enable auto-restart.


Volume tab
Click on Add Folder button and create a folder structure in your Docker:
FolderMounth path
docker/nextcloud/config/config
docker/nextcloud/data/data

Port Settings tab
Local PortContainer port
< set your port number >443
< set your port number >80

Environment tab
VariableValue
PUID< your userID >
PGID< your groupID >
TZ< your timezone >
Click Apply button, wait approx. 4 minutes for everything to install, then navigate in your browser to http://yourNASip:yourNextcloudLocalPortFor443 and that's it!




Installation wizard for Nextclud
After you've navigated to browser make sure to choose MySQL/MariaDB as the database when installing Nextcloud via the web interface and fill the install form with database credentials. Also, change localhost to http://yourNASip:yourLocalPortforMySQL

Read official manual:


You can access your Nextcloud also from outside by using reverse proxy. (How to set up reverse proxy?)
Related resources



  • Like
Reactions: Rusty

Latest updates

  1. Image changed to linuxserver/nextcloud

    The tutorial is rewritten - image changed to linuxserver/nextcloud. Easier to set up and...
Top