Access Nextcloud Docker > Synology

Hello everyone, I was using a Synology NAS. I now have Nextcloud running in Docker following instructions from Mariushosting.

Now my question is, how can I access the data on the Synology via Nextcloud? I have tried something here > Do I have to enter the path in the stack or enter something under Portainer > Containers > Nextcloud > Volume mapping?

I would like to have access to the following example ‘/volume1/Public’. Can anyone help me?




![Screenshot 2025-03-25 203334|690x333]

(upload://3hd3pHRdbecKryWZiXeEAtmvNP0.png)

services:
mariadb:
container_name: Nextcloud-DB
image: mariadb:11.4-noble #LTS Long Time Support Until May 29, 2029.
security_opt:

  • no-new-privileges:false
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-read-only-compressed=OFF
    volumes:
  • /volume2/docker/nextcloud/db:/var/lib/mysql:rw
  • /volume2/docker/nextcloud/db:/etc/mysql/conf.d:rw
    environment:
  • MYSQL_ROOT_PASSWORD=xxxxxxxxxxx
  • MYSQL_PASSWORD=xxxxxxxxxxxxxxxxxxx
  • MYSQL_DATABASE=nextcloud
  • MYSQL_USER=nextcloud
  • TZ=Europe/Berlin
    restart: on-failure:5

redis:
image: redis
container_name: Nextcloud-REDIS
hostname: nextcloudredis
user: 1029:100
healthcheck:
test: [“CMD-SHELL”, “redis-cli ping || exit 1”]
volumes:

  • /volume2/docker/nextcloud/redis:/data:rw
    environment:
    TZ: Europe/Berlin
    restart: on-failure:5

nextcloud:
container_name: Nextcloud
ports:

  • 8082:80
    depends_on:
    mariadb:
    condition: service_started
    redis:
    condition: service_healthy
    environment:
  • REDIS_HOST=nextcloudredis
  • NEXTCLOUD_ADMIN_USER=xxxxxxxxxxx
  • NEXTCLOUD_ADMIN_PASSWORD=xxxxxxxxxxxxxxxx
  • NEXTCLOUD_TRUSTED_DOMAINS=nxxxxxxxxxxxxxxxxxxxxxxxnology.me 192.168.178.38
  • TRUSTED_PROXIES=192.168.178.38
  • OVERWRITEHOST=nextxxxxxxxxxx9.synology.me
  • OVERWRITEPROTOCOL=https
  • MYSQL_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxx
  • MYSQL_DATABASE=xxxxxxxxx
  • MYSQL_USER=xxxxxxxxxxxxxxxxxxxxxx
  • MYSQL_HOST=mariadb
    healthcheck:
    test: curl -f http://localhost:80/ || exit 1
    volumes:
  • /volume2/docker/nextcloud/html:/var/www/html:rw
  • /volume2/docker/nextcloud/custom_apps:/var/www/html/custom_apps:rw
  • /volume2/docker/nextcloud/config:/var/www/html/config:rw
  • /volume2/docker/nextcloud/data:/var/www/html/data:rw
  • /volume2/docker/nextcloud/themes:/var/www/html/themes:rw
    image: nextcloud
    restart: on-failure:5

cron:
image: nextcloud:apache
container_name: Nextcloud-CRON
restart: always
volumes:

  • /volume2/docker/nextcloud/config:/var/www/html/config:rw
  • /volume2/docker/nextcloud/html:/var/www/html:rw
  • /volume2/docker/nextcloud/custom_apps:/var/www/html/custom_apps:rw
  • /volume2/docker/nextcloud/data:/var/www/html/data:rw
    entrypoint: /cron.sh
    depends_on:
    mariadb:
    condition: service_started
    redis:
    condition: service_started

So you have to mount this path, i only see volume2 paths
And then you can in nc this include under external storage (local mount)

1 Like

I have now mounted volume 1. None of the options I have currently set show anything in the folder > Storage is temporarily not available under External Storage



Pls mount it not in the directory of nextcloud
Use /mnt or something else

I’ve already tried that. But it doesn’t work. I read on the internet that different Linux systems are to blame (Synology + nextcloud) and that they only work via Teamfolder. Can nobody really help me here? This is not exactly a rare occurrence.