Hello,
I am using Nextcloud on Docker. I am trying to setup external storage, but I would like to setup this outside /var/www/html
folder to have fluent updates and avoid potential problems as described on github.
I tried to setup external storage within /var/www/html
and I was successful, but all attempts to make that outside this folder fail. When I try to map folders with Docker volumes, they simply do not appear in the container itself.
My recent docker compose file:
version: '3.8'
services:
db:
image: mariadb:10.11
container_name: mariadb
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- ./sql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
redis:
container_name: redis
image: redis:alpine
restart: always
app:
image: nextcloud:stable-apache
container_name: nextcloud
restart: always
ports:
- 8080:80
depends_on:
- redis
- db
volumes:
- /home/nas/data/nc-test-data:/var/www/data/
environment:
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
I tried to give that folder (nc-test-data) 750 permissions as described in manual, but folder is still not present in the container itself when I cd into the /www/data
folder.
Is there a correct way of doing this without actually creating your own Docker image? Do I miss here something? It is weird as with html folder I can more or less do this succssfully.
Thanks