Nextcloud Docker on Ugreen DXP4800 (SSD/HDD) – 403 Forbidden / Access Denied

Hello everyone,

I’m currently trying to set up a Nextcloud instance via Docker on my Ugreen DXP4800 (UGOS Pro). Since I don’t have much experience with Docker and most YouTube videos only cover the general setup, I used an AI to help me tailor the configuration to my specific needs.

My Goal: I want to securely access my Nextcloud from the outside without opening any ports on my router. Therefore, I’m using the WireGuard VPN feature of my FRITZ!Box. My phone connects via WireGuard, and I access the container locally via http://[NAS-IP]:8080.

My Hardware & Storage Setup:

  • NAS: Ugreen DXP4800

  • Volume 1 (SSD): The Docker app, configuration, and Nextcloud database should run here to ensure fast system response times.

  • Volume 2 (HDD): This is exclusively for storing large files uploaded by users (images, videos) (Hybrid-Setup).

  • Router: FRITZ!Box (WireGuard active).

What I have done step-by-step so far:

  1. Folder creation on the NAS:

    • Created a Shared Folder named Docker on Volume 1. Inside it, I created a regular subfolder named nextcloud.

    • Created a Shared Folder named Nextcloud-Data on Volume 2.

    • Important regarding UGOS permissions: When creating the Shared Folders, I made sure not to check the “Only accessible for administrators” box. The folders are hidden in the network and the recycle bin is deactivated. However, I still cannot set explicit read/write permissions for “Standard users” in the UGOS interface (the checkboxes are grayed out). My Admin account has full read/write access.

  2. Downloaded Docker Image:

    • Pulled the official nextcloud:latest image via the Ugreen Docker app.
  3. Container Configuration:

    • Network: bridge

    • Port Mapping: Local NAS port 8080 to Container port 80 (TCP).

    • Volume Mappings (The Hybrid Setup):

      • SSD Path: Shared Folder Docker/nextcloud mapped to /var/www/html (Read/Write).

      • HDD Path: Shared Folder Nextcloud-Data mapped to /var/www/html/data (Read/Write).

    • Privileged Mode: Deactivated.

    • Execution Command: apache2-foreground (Default).

The Problem: I activated the VPN on my smartphone, entered the NAS IP + “:8080” in the browser → Access denied (403 Forbidden). The blue Nextcloud setup screen doesn’t even appear.

So…what can I do?

If you are going to attempt this, I suggest starting with a simpler deployment to test the basics then incrementally layering in more complexity - such as the VPN.

Note that there are real docs for the image you’re attempting to use with both simple and elaborate examples

You also may want to check out the Nextcloud AIO Docker image, which is a pre-optimized stack. The image you’re attempting to deploy is for DIY Nextcloud stack building. Though certainly use whichever you desire.