Files and photos
How to install Nextcloud on your home server
Nextcloud is your own cloud for files, calendar, contacts and sharing. The All-in-One web page is on port 8080. It has steps for Debian, TrueNAS and Proxmox.
What the steps install, and how it connects
Connects to it
- Browser8080/tcp
Your server, in Docker
container nextcloud-aio-mastercontainer
image ghcr.io/
- 80/tcp
- 8080/tcpweb page
- 8443/tcp
The other Nextcloud containers, started by the master container
Its data on the server
- nextcloud_aio_mastercontainerto /
mnt/ its settings (a Docker volume)docker-aio-config /read-onlythe Docker socketvar/ run/ docker.sock
On TrueNAS the app’s web page is on 30027/tcp. Drawn from step 7 of the Debian + Docker steps. Ports are the ones in those steps and in the table below.
The diagram in words
The Debian + Docker steps install the container nextcloud-aio-mastercontainer, with ports 80/tcp, 8080/tcp and 8443/tcp. Connects to it: Browser on 8080/tcp. Its data: nextcloud_aio_mastercontainer (its settings (a Docker volume)); /var/run/docker.sock (the Docker socket).
What it needs
| Ports | 80/tcp, 8080/tcp (web page), 8443/tcpTrueNAS app web page: 30027/tcp |
|---|---|
| Memory | 128 MB minimum and 512 MB recommended for each PHP process. These are not figures for the whole server.docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html read 25 Nov 2026 |
| CPU | The project strongly recommends a 64-bit CPU, system and PHP. No core count is given.docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html read 25 Nov 2026 |
| Disk | Not stated by the project (read 25 Nov 2026) |
| Licence | AGPL-3.0 |
| Project page | nextcloud/server |
Ports are the project's defaults. Memory and disk figures are the project's own, with the page and the date read. Estimates only.
The one thing to know before you start
All-in-One needs ports 80, 8080 and 8443 all free before you start. It also gives its master container the Docker socket, so that the container can start the other containers. Free the ports first. The memory figures in the table are per PHP process, not for the whole server.
Install steps
These steps follow the project's own pages and have not been tried on real hardware yet.
They start from a server that runs Docker: set up an old laptop or PC first. Docker or bare metal for Nextcloud: what each method needs.
- WARNINGDo not run these steps on a server with a public IP address. Anyone on the internet could then reach the apps.
- WARNINGDo not forward these ports on your router, unless a step tells you to. The ports would then be open to the internet.
- WARNINGDo not trust ufw to close a port that Docker opens. Docker bypasses the ufw rules. Read the Docker page on firewalls.
Debian + Docker
checking Some details are still being checked.
- WARNINGFree ports 80, 8080 and 8443 before you start. Nextcloud All-in-One needs all three.
- WARNINGKnow that the master container gets the Docker socket. It starts the other containers with it.
Install Docker Engine with the Compose plugin. Use the Docker page for Debian.
Type this command to create the docker group. If the group exists, go to the next step.
sudo groupadd dockerType this command to add your user to the docker group.
sudo usermod -aG docker $USERLog out and log in again so that the group change takes effect.
Type this command to test Docker.
docker run hello-worldIf port 80, 8080 or 8443 is in use, stop.
Type this command to start Nextcloud All-in-One.
docker run --init --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --publish 80:80 --publish 8080:8080 --publish 8443:8443 --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config --volume /var/run/docker.sock:/var/run/docker.sock:ro ghcr.io/nextcloud-releases/all-in-one:latestOpen https://<server address>:8080 in a browser.
If the browser shows a certificate warning, accept it. Port 8080 uses a self-signed certificate.
TrueNAS app
checking Some details are still being checked.
- WARNINGThis app is in the stable train. iXsystems supports it.
- WARNINGUpdate TrueNAS to version 24.10.2.2 or newer before you start.
Open Apps > Discover Apps.
Apps > Discover Apps > search 'nextcloud' > Install (train: stable)Search for 'nextcloud'.
Click Install.
Open http://<server address>:30027 in a browser.
Proxmox VE (VM + Docker)
checking Some details are still being checked.
- WARNINGUse a VM, not an LXC container. Proxmox says: "nesting containers inside a Proxmox QEMU VM remains a recommended practice".
- WARNINGFree ports 80, 8080 and 8443 before you start. Nextcloud All-in-One needs all three.
- WARNINGKnow that the master container gets the Docker socket. It starts the other containers with it.
Create a Debian VM in Proxmox VE.
Sign in to the VM.
Install Docker Engine with the Compose plugin. Use the Docker page for Debian.
Type this command to create the docker group. If the group exists, go to the next step.
sudo groupadd dockerType this command to add your user to the docker group.
sudo usermod -aG docker $USERLog out and log in again so that the group change takes effect.
Type this command to test Docker.
docker run hello-worldIf port 80, 8080 or 8443 is in use, stop.
Type this command to start Nextcloud All-in-One.
docker run --init --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --publish 80:80 --publish 8080:8080 --publish 8443:8443 --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config --volume /var/run/docker.sock:/var/run/docker.sock:ro ghcr.io/nextcloud-releases/all-in-one:latestOpen https://<server address>:8080 in a browser.
If the browser shows a certificate warning, accept it. Port 8080 uses a self-signed certificate.
Licences and credits: Sources and licences.
What will it cost to run?
This page gives no power figure for Nextcloud. The planner adds up the box it runs on, where the power goes splits that figure part by part, and the guide gives idle watts and a yearly cost at your own price.
Plan a file server in the planner, or read the home server hardware guide.
Related apps
- Immich: photos on the same box
- Vaultwarden: passwords on the same box