How to install Nextcloud on an OVHcloud VPS with Docker
Objective
This guide explains how to install Nextcloud, a personal cloud solution (files, photos, contacts, calendar), on an OVHcloud VPS.
It is intended for beginner users who want a simple installation, without a reverse-proxy.
At the end of this guide, you will have:
- A working Nextcloud on your VPS
- Access via a web browser
- A MariaDB database suitable for real use
Requirements
- An OVHcloud VPS offer under Ubuntu 22.04 LTS (or equivalent)
- Access via SSH to your VPS
- A domain name (optional but recommended)
Instructions
Table of contents:
- Step 1: Connect to the VPS
- Step 2: Prepare the system
- Step 3: Install Docker and Docker Compose
- Step 4: Deploy Nextcloud
- Step 5: Access Nextcloud
- Step 6: Best practices after installation
Step 1: Connecting to the VPS
Connect to your VPS via SSH with the user provided by OVHcloud (e.g. ubuntu).
Step 2: Preparing the system
Update the system:
Install the required dependencies:
Step 3: Installing Docker and Docker Compose
Install Docker:
Add your user to the Docker group:
Check the installation:
Step 4: Deploying Nextcloud
Create a working directory:
Create the docker-compose.yml file:
Launch Nextcloud:
Step 5: Accessing Nextcloud
In your browser, open http://IPv4_DE_VOTRE_VPS:8080.
On first access:
- Create an administrator account
- Let Nextcloud automatically detect the database
Step 6: Best practices after installation
For long-term use, we recommend:
- Configuring a domain name
- Setting up HTTPS access (Nginx Proxy Manager or Traefik)
- Enabling background tasks in Cron mode
- Installing the Nextcloud PC and mobile clients for automatic synchronization
- Setting up regular backups
Go further
This guide allowed you to quickly deploy Nextcloud on a VPS using Docker, without complex configuration.
If you want to go further - notably by adding automatic HTTPS, a reverse-proxy, or hosting multiple services on the same VPS - we recommend you consult the guide for advanced users, which presents a more robust architecture based on Docker and a modern reverse-proxy.
To deepen certain aspects or strengthen the security and reliability of your installation, you can also consult the following resources:
Official Nextcloud documentation
Join our community of users.