Paul Hermans

Personal website of Paul Hermans, former webhosting provider now in sabbatical.

Installing Nextcloud on Proxmox (part 2)

In part 1 of this blog series we prepared an Ubuntu 26.04 server with a second disk on /mnt/datadisk.

Today we are going to install Nextcloud.

SSH into your server to get started.

1. Install docker

First we have to install docker because Nextcloud needs it.

See the Docker documentation

Use a convenience script:

# Download and execute the Docker installer script
curl -fsSL https://get.docker.com | sudo sh

# Add our user to the docker group
sudo usermod -aG docker $USER

# Verify installation
docker --version

# Logout and login again to activate the docker group for our user
logout

2. Prepare Nextcloud directory and config

Prepare the foundations for Nextcloud installation:

# Make nextcloud installation directory
sudo mkdir /opt/nextcloud

Download the Nextcloud configuration template and edit it:

# Change directory
cd /opt/nextcloud

# Download compose.yaml template
curl -o compose.yaml https://raw.githubusercontent.com/nextcloud/all-in-one/main/compose.yaml

# Edit compose.yaml
nano compose.yaml

Enable hardware acceleration and configure our datadisk, uncomment and edit these lines:

devices: ["/dev/dri"]

environment:
 NEXTCLOUD_DATADIR: /mnt/datadisk

Save and exit nano.

3. Run nextcloud

Start Nextcloud for the first time.

# Change directory to where the compose.yaml file is
cd /opt/nextcloud

# Download the Nextcloud docker containers and start detached
docker compose up -d

# Check the logs
docker compose logs

# Check the logs and keep following (CTRL+C to exit)
docker compose logs -f

# See which containers are running
docker compose ps

4. Login to Nextcloud

Open your browser and login to https://internal.ip.of.this.server:8080

That’s it for now, configuring Nextcloud in the third part of the series.