NextCloud setup

Nextcloud is google drive if cloud was your server. at least thats wht i will be using for because i have a 500GB hardrive and im lacking storage on my devices.

Demetre Badzgaradze

HomeServerLocalCloudubuntulinux

305 Words words, 1 Minute, 23 Seconds

2025-03-18 00:00 +0000 [ 04bdc08 @ 2025-05-30]


What is NextCloud?

Nextcloud is a opensource self hosted app for data storage and here i will be using it for my home server because i am running out of storage on my devices and i have this 500GB Hardrive that is not in use for now so this project solves many problems.

PLAN

follow this official repo for docker installation(because docker is pure magic) and

Setup

to get this app started make compose.yml file and fill in like this:

---
services:
  nextcloud:
    image: lscr.io/linuxserver/nextcloud:latest
    container_name: nextcloud
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - /path/to/nextcloud/config:/config
      - /path/to/data:/data
    ports:
      - 443:443
    restart: unless-stopped

of course you can change the machine port and directories accordingly.

  • data is folder where all of the files and folders will be saved
  • config is self explanatory
  • port is the port on witch app will be ran on.
  • change the TZ time zone
  • also change puid and pgid for your user. to check your ids type id in terminal more for this step

after that run

sudo docker compose up -d

in a same directory as the compose file and after successful run 👇👇👇

Login

  1. go on that website it should be https://<ip-addres-or-name-of-host>:<port>
  2. make new admin account
  3. and you are done.

more things you can do

I will use their phone app and and tailscale VPN for more accessibility.

manually Installing docker compose

for server I need docker compose plugin. here is how to to install it but basically its:

  1. making a variable:
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
  1. making a directory for installation:
mkdir -p $DOCKER_CONFIG/cli-plugins
  1. and getting the binary:
curl -SL https://github.com/docker/compose/releases/download/v2.34.0/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
  1. and executing it
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose

so now I have docker compose as plugin:

docker compose version
Docker Compose version v2.34.0

but remember this is for the one user you are logged in as. for all users checkout this