User Tools

Site Tools


portainer:dockers:nextcloud

Nextcloud

Nextcloud is a suite of client-server software for creating and using file hosting services. Nextcloud is free and open-source, which means that anyone is allowed to install and operate it on their own private server devices.

Version

I used linuxserver's version

Docker Setup

  • publish a new network port
    • 8666 → 80 TCP
  • volumes:
    • /var/www/html/custom_apps → /mnt/nvme/appdata/nextcloud/apps
    • /var/www/html/data → /mnt/nvme/appdata/nextcloud
    • /var/www/html → /mnt/nvme/appdata/nextcloud/html
    • /var/www/html/config → /mnt/nvme/appdata/nextcloud/config
  • network:
    • Type: bridge
    • Fixed IP address (optional): blank
  • Env:
    • PUID: 99
    • PGID: 100

App Settings

  • to convert images from HEIC to jpeg I installed imagemagick with brew on the Mac. Then used:
    magick mogrify -monitor -format jpg *.HEIC

    in a folder with the HEIC files.

  • then add them to your nextcloud users Photos doc
  • then add them to database with:
    sudo occ files:scan --all --verbose

    (this does all users)

  • then add them to maps with:
    sudo occ maps:scan-photos -vvv

Update commands

  • if command line update required:
    • ssh into ubuntu machine (not the docker shell)
    • run
      sudo docker exec -itu www-data nextcloud php occ upgrade
  • if stuck in maintenance mode:
    • ssh into ubuntu machine (not the docker shell)
    • run
      sudo docker exec -itu www-data nextcloud php occ maintenance:mode --off
portainer/dockers/nextcloud.txt · Last modified: by dirk