Follow
Ubuntu Linux

How to Install Nextcloud AIO on Ubuntu Linux

Richard
Written by
Richard
Jan 24, 2024 Updated Mar 19, 2026 4 min read
How to Install Nextcloud AIO on Ubuntu Linux
How to Install Nextcloud AIO on Ubuntu Linux

This article explains how to install Nextcloud AIO on Ubuntu Linux.

Nextcloud AIO (All-in-One) is a Docker-based solution that lets you easily set up a personal cloud server.

One might want to install Nextcloud AIO on Ubuntu Linux for several reasons. One of the main reasons is to easily set up a personal cloud server. Nextcloud AIO is a Docker-based solution that simplifies installation and allows you to easily manage your files, photos, and documents from anywhere.

Additionally, Nextcloud AIO provides a range of features and applications, including file sharing, collaboration, and more.

Installing Nextcloud AIO on Ubuntu Linux is also a secure and reliable way to store your data, giving you full control over your files and privacy.

⚡ Quick Answer

Install Nextcloud AIO by first ensuring Docker and Docker Compose are set up. Then, create a directory, a docker-compose.yml file with the provided configuration, and run `docker-compose up -d` to start the services.

Prerequisites

  • A server running Ubuntu Linux with internet access.
  • Sufficient privileges to execute commands (typically as the root user or via sudo).
  • Docker and Docker Compose are installed on your system.
  • Domain name pointing to your server’s IP address (for server with certificate).

Update the System

Before installing any new software, updating your system packages to the latest versions is a good idea.

🐧Bash / Shell
sudo apt update
sudo apt upgrade

Install Docker

If Docker is not already installed on your system, proceed with the installation by executing the following commands:

🐧Bash / Shell
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce

More about Docker can be found in the link below:

How to install Docker on Ubuntu Linux

Install Docker Compose

After installing Docker, you must install Docker Compose, which will manage multi-container Docker applications.

🐧Bash / Shell
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

More about Docker Compose can be found in the link below:

How to install Docker Compose on Ubuntu Linux

Set Up Docker to Run Without Sudo

To run Docker commands without sudo, add your user to the docker group.

🐧Bash / Shell
sudo usermod -aG docker ${USER}
su - ${USER}

Run the id -nG command to check if your user is now added to the docker group.

In some cases, you may have to log out and back in or restart the computer for the above command to take effect.

Install Nextcloud AIO

Next, create a new directory for your Nextcloud installation and navigate into it.

Command Prompt
mkdir nextcloud-aio
cd nextcloud-aio

Now create a docker-compose.yml file that will contain the configuration for the Nextcloud AIO services.

💻Code
nano docker-compose.yml

Add the following configuration:

💻Code
version: "3.8"

volumes:
  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer

services:
  nextcloud:
    image: nextcloud/all-in-one:latest
    restart: always
    container_name: nextcloud-aio-mastercontainer
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
      - /var/run/docker.sock:/var/run/docker.sock:ro
    ports:
      - 80:80
      - 8080:8080
      - 8443:8443

Save and exit the file.

Start Nextcloud AIO

Run the following command to start all services defined in your docker-compose.yml file.

💻Code
docker-compose up -d

Access Nextcloud AIO

Open a web browser and navigate to http://your-server-ip:8080 or https://your-domain.com:8443 if you have configured a domain with SSL.

You will be presented with the Nextcloud AIO setup wizard, which will guide you through the rest of the setup process, including creating an admin account, database setup, and choosing other preferences.

set up Nextcloud AIO on Ubuntu Linux
set up Nextcloud AIO on Ubuntu Linux

Don’t forget to copy the password from the previous screen and paste it into the password field.

set up Nextcloud AIO on Ubuntu Linux type in password
set up Nextcloud AIO on Ubuntu Linux type in password

You can secure your Nextcloud AIO installation with a free Let’s Encrypt SSL certificate when you have a domain name. The Nextcloud AIO docker container includes a built-in option to obtain and configure SSL for you.

Simply follow the on-screen instructions during the initial setup to configure SSL.

You can use Some important posts to get Nextcloud AIO to work effectively on Ubuntu Linux.

Conclusion:

  • Nextcloud AIO on Ubuntu Linux offers a simple and secure way to set up a personal cloud server, providing easy management of files, photos, and documents from anywhere.
  • Following the installation process gives you full control over your data, ensuring privacy and reliability.
  • Leveraging Docker technology, Nextcloud AIO introduces various features and applications, including file sharing, collaboration, and more.
  • Secure the installation with a Let’s Encrypt SSL certificate to enhance data protection and accessibility.
  • Explore the official Nextcloud AIO documentation for advanced configuration options and detailed information.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Install PowerDNS on Ubuntu Linux
CMS How to Install PowerDNS on Ubuntu Linux
How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *