Hello,
I am trying to set up Nextcloud on my server.
I am running Proxmox and inside that there are two VMs True NAS with pool and Ubuntu that hosts my Nextcloud docker instance.
In True NAS I have created a samba share instance.
After that, I have created a user:
After that, I mounted it inside my Ubuntu:
//192.168.50.36/nextcloud /nextcloud cifs credentials=/etc/samba/user,iocharset=utf8,uid=1000,gid=1000,noperm 0 0
then I am trying to create my nextcloud instance with below docker compose:
version: '3'
volumes:
database:
config:
services:
nextcloud-app:
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud-app
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Warsaw
volumes:
- config:/config
- /nextcloud/data:/data
ports:
- 8443:443
restart: unless-stopped
nextcloud-db:
image: mariadb
restart: unless-stopped
container_name: nextcloud-db
volumes:
- database:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=nc
- MYSQL_USER=nc
and after providing info about mariadb to my nextcloud I am seeing:
Your data directory is readable by other users.
Please change the permissions to 0770 so that the directory cannot be listed by other users.
I have tried to run
chmod 0770
from ubuntu on created /data folder inside samba share
from truenas on /data folder
from nextcloud container on /data folder
but no luck
What I need to do to make it work properly?