Deploying the Nextcloud Server
Note: Ensure that all prerequisites are completed before proceeding with the deployment.
Install Required Software
System Packages
sudo apt install -y git openssl curl coreutils grep jq fail2ban ufw
Install Docker and Supporting Packages
sudo curl -sSL https://get.docker.com/ | CHANNEL=stable sh
sudo systemctl enable --now docker
sudo apt install docker-compose-plugin docker-compose
Install Nextcloud
Clone the Nextcloud Repository into a Local Folder
sudo -i
umask 0022
cd /opt
git clone https://github.com/nextcloud/all-in-one.git
Bring Up the Nextcloud Instance
Pull All the Latest Images
cd /opt/all-in-one
docker compose pull
Bring Up the Instance
cd /opt/all-in-one
docker compose up -d
Accessing Your Instance
The first login must be performed using the IP address of the VM.
https://<public IP address>:8080
Save the passphrase for future use.