Back to photostream

How to Install Nextcloud with Docker on Your Linux Server

Nextcloud is the perfect solution for a self-hosted Google Drive or Dropbox alternative.

 

 

I am not going to tell you why you should use Nextcloud. Instead, I am going to show you how to install Nextcloud server with Docker containers.

 

 

The tutorial uses Ngnix reverse proxy set up so that you can deploy your Nextcloud instance with SSL. This way, your Nextcloud deployment URL will be using HTTPS and you’ll be transferring files securely.

 

 

Prerequisites

 

 

Before moving forward, some things need to be taken care of. Here’s what you need:

 

 

- A Linux server either a physical one, a virtual machine or in a cloud server.

 

 

- Docker and Docker Compose installed on your Linux server. If you need help follow docker installation guide on Ubuntu and CentOS. Similarly, you can follow the docker-compose installation tutorials on Ubuntu and CentOS.

 

 

- Some knowledge of Docker and Docker Compose is good to have.

 

 

- A domain name. This deployment, like all the other ones from Linux Handbook, is done under an actual domain name with HTTPS.

 

 

- Some experience with shell and Linux commands since there’s a lot of movement in there.

 

 

- Access to an SMTP service like Sendgrid. You’ll need it for sending email notifications, password reset etc.

 

 

- Time and patience.

 

 

Deploying Nextcloud server with Docker in reverse proxy

 

 

Let’s see the steps one by one.

 

 

Step 1: Set up reverse proxy

 

 

With reverse proxy, you can deploy several web services on the same server.

blog.revold.us/how-to-install-nextcloud-with-docker-on-yo...

85 views
0 faves
0 comments
Uploaded on April 22, 2025