The issue you are facing:
i have just setup nextcloud for the first time on my ubuntu 20.04 build,using the offical docker- compose. Everything is working and i have also setup haproxy infront of nextcloud service.
My question is how do i map the nextcloud storage data vol to a shared drive that i have already mounted with autofs in ubuntu to the path /mnt/nfs/nextcloud.
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=
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
ports:
- 8080:80
links:
- db
volumes:
- nextcloud:/var/www/html
restart: always
I have tried various ways but i keep getting errors. what format should the volume section be.
volumes:
- /mnt/nfs/nextcloud:/mnt/nfs/nextcloud
- data:/var/www/html/data
- /mnt/nfs/nexcloud:/var/www/html/data
- /home/user/nextcloud/data:/var/www/html/data