What is it?

Nextcloud is a sort of cloud software. It’s main issue is being bloated with unnecessary features, but it is a reasonably good cloud solution for masses.

How and why I use it

I run Nextcloud as an option to sync files between devices and also to have a backup on my server.

It runs in a Proxmox LXC container through Docker. There are better solutions, but I was migrating existing Docker instance, and I didn’t want to mess with it much.

Setup

  1. Setup the LXC with Docker
  2. Use Docker compose file
services:
  db:
    image: postgres
    restart: always
    volumes:
      - db:/var/lib/postgresql/data
    environment:
      - POSTGRES_DB=nextcloud
      - POSTGRES_USER=<CHANGE_ME!!>
      - POSTGRES_PASSWORD=<CHANGE_ME!!>

  app:
    image: nextcloud
    restart: always
    ports:
      - 8080:80
    volumes:
      - nextcloud:/var/www/html
    environment:
      - POSTGRES_HOST=db
      - POSTGRES_DB=nextcloud
      - POSTGRES_USER=<CHANGE_ME!!>
      - POSTGRES_PASSWORD=<CHANGE_ME!!>
    depends_on:
      - db

  cron:
    image: nextcloud
    restart: always
    volumes:
      - nextcloud:/var/www/html
    entrypoint: /cron.sh
    depends_on:
      - db

volumes:
  db:
  nextcloud: