Hi, I’m trying to setup Nextcloud following simply this official docker compose, but on the first setup I can’t access to data directory. I fill the data path /home/user/nextcloud/data
, but I’m getting a permission error.
I’ve changed just the data and config volumes on the compose, and these two dir are created automatically on the first sudo docker-compose up
(they’re owned by root of course).
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=passwd
- MYSQL_PASSWORD=secret
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
ports:
- 8080:80
links:
- db
volumes:
- ./config:/config
- ./data:/data
restart: always