Nextcloud AIO Setup Guide - ajgillis04/GillisDockerDepot GitHub Wiki

Nextcloud AIO Setup Guide

Introduction

Nextcloud AIO (All-In-One) provides a convenient way to deploy and maintain a full Nextcloud installation, including all necessary services, in a single Docker container.

Prerequisites

  • Docker installed
  • Nextcloud AIO container running in your Docker stack

Configuration Steps

Step 1: Accessing and setting up the Nextcloud AIO UI

  1. Open your browser and navigate to http://<your-ip-address>:8086/setup.

  2. Copy the passphrase to a safe place and click "Open Nextcloud AIO Login."

  3. On the next screen, login using the password from step 2.

    NextCloud Setup NextCloud Setup2

  4. Enter your domain name and click "Submit domain."

    NextCloud Setup3

  5. Select your optional containers, save, submit timezone, and choose download and start containers.

    NextCloud Setup4
    Note: Ensure to add mediaserver network to the nextcloud-aio-apache container if required.

  6. Initial setup complete. Copy (and save) the Initial Nextcloud password and select "Open Your Nextcloud."

    NextCloud Setup5

Step 2: Configuration Nextcloud

  1. For account name or email, type "admin," and the password from the last step. Click "Login."

    NextCloud Config1
    Note: You can go through the "What's new," or click the X at the top right.

  2. Set up a whitelist for your IP. Top right, select the A, administrative settings, security, brute-force IP whitelist, Add a new whitelist. Add your ISP assigned IP. I use /24 in case my ISP changes my IP.

    NextCloud Config2 NextCloud Config3
    Note: This helps prevent locking yourself out in case of misconfiguration.

  3. Set password policy as per your requirements.

    NextCloud Config4

  4. Set up the email server. From the administration, go to basic settings, email server, and enter the settings.

    NextCloud Config6
    Note: This ensures users receive messages when their accounts are created.

  5. Set up users and groups. Click on the A at the top right, then accounts.

    NextCloud Config5

    Note: I use a script to create my accounts, e.g.,

    export OC_PASS=whateverpassword
    /var/www/html/occ user:add --password-from-env --display-name="Test User" --group="users" [email protected]
    
    
  6. Setup external storage, Click on the A top right, apps, your apps, scroll to bottom and enable External storage

    • Go to External storages under the Administration section and set your external storage.

    NextCloud Config7 I create a Documents folder for each user on the NAS that points back to their home drive and a few others

    NextCloud Config8
    Note: For NASShares I also turn on enable sharing allowing me to create shares for others.

  7. Last step I do is add my domain, local IP, and phone code to the config.php

    sudo docker run -it --rm --volume nextcloud_aio_nextcloud:/var/www/html:rw alpine sh -c "apk add --no-cache nano && nano /var/www/html/config/config.php" 
    

    NextCloud Config9 NextCloud Config10

Setting Up Phone for Auto Backups

  1. Open the Nextcloud app and enter the Server address

NextCloud Phone4
*Note: You will be redirected to your browser to enter your Nextcloud credentials.

  1. Connect to your account.

NextCloud Phone5

  1. Grant Access

    NextCloud Phone6

  2. Navigate to Documents.

  3. Tap + and select Create new Folder.

  4. Name the new folder Photos.

    NextCloud Phone1

  5. Go back twice.

  6. Open the Burger menu.

  7. Go to Settings.

  8. Select Auto upload.

  9. Tap (ellipsis) and configure the folder you want to upload.

  10. Enable Auto upload.

  11. Change the Remote folder to the newly created Photos folder.

    NextCloud Phone2
    NextCloud Phone3