Resource icon

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

Check this tutorial to install Nextcloud using Docker compose:

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



Latest updates

  1. Image changed to linuxserver/nextcloud

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

Similar resources

NextCloud on Synology NAS using Docker compose (with Portainer) SynoMan
The self-hosted productivity platform that keeps you in control
5.00 star(s) 1 ratings
Updated
BitWarden - self hosted password manager using vaultwarden/server image Rusty
5.00 star(s) 11 ratings
Updated
Firefly III - self-hosted manager for your personal finances wwwampy
4.75 star(s) 4 ratings
Updated
FreshRSS: A free, self-hostable news feed aggregator fredbert
Installation and configuration of FreshRSS in docker, using SQLite or PostgreSQL database
5.00 star(s) 3 ratings
Updated
Restyaboard - self-hosted, open source, Trello like kanban board wwwampy
0.00 star(s) 0 ratings
Updated
Seafile (self-hosted) - a powerful, open source, cross-platform file syncing and sharing service Telos
A powerful, open source, cross-platform file syncing and sharing service
0.00 star(s) 0 ratings
Updated
Tornote - Self-destructing notes (Docker) Rusty
Self-destructing notes written on Go with Stanford Javascript Crypto Library for client-side encrypt
0.00 star(s) 0 ratings
Updated
Back
Top