I am trying to set up nextcloud
This is my docker compose file
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb:10.6
restart: unless-stopped
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
restart: unless-stopped
ports:
- 8085:80
links:
- db
volumes:
- /home/adam/docker/nextcloud:/var/www/html
- /home/adam/Share/SSD/nextcloud/data:/var/www/html/data
environment:
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
once I deployed it and made a admin account I got this message
Error
Your data directory is readable by other people.
Please change the permissions to 0770 so that the directory cannot be listed by other people.
so I tried sudo chmod 0770 /home/adam/Share/SSD/nextcloud/data but I still get the error, I have also tried to remake the container without - /home/adam/Share/SSD/nextcloud/data:/var/www/html/data and it works
Anyone know how to fix this ?