Dockercompose and NFS shares

Hi,
I am trying to run the seafile dockercompose file and have changed the data and database volumes to point to a locally mounted NFS share. I have been experimenting with various permutations of NFS/permissions/no_root_squash and /etc/fstab combinations but cannot get the docker-compose and associated containers to start up. (The NFS share is accessible and writeable by all the normal users and commands like touch, I only experience problems when using docker-compose and containers).

I’m now wondering if this is even possible before any spend any more days grappling with this. Should it be possible to use this docker-compose file without issue where /mnt/nfsprox is a mounted (via fstab) NFS share? If so I’m happy to spend more time fighting this…

version: ‘2.0’
services:
db:
image: mariadb:10.11
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=OBSCURED # Requested, set the root’s password of MySQL service.
- MYSQL_LOG_CONSOLE=true
volumes:
- /mnt/nfsprox/seafile-volume/seafile-mysql/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
networks:
- seafile-net

memcached:
image: memcached:1.6.18
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net

seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
ports:
- “80:80”

- “443:443” # If https is enabled, cancel the comment.

volumes:
  - /mnt/nfsprox/seafile-volume/seafile-data:/shared   # Requested, specifies the path to Seafile data persistent store.
environment:
  - DB_HOST=db
  - DB_ROOT_PASSWD=OBSCURED # Requested, the value should be root's password of MySQL service.
  - TIME_ZONE=Etc/UTC  # Optional, default is UTC. Should be uncomment and set to your local time zone.
  - SEAFILE_ADMIN_EMAIL=steve@example.com # Specifies Seafile admin user, default is 'me@example.com'.
  - SEAFILE_ADMIN_PASSWORD=OBSCURED   # Specifies Seafile admin password, default is 'asecret'.
  - SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not.
  - SEAFILE_SERVER_HOSTNAME=docs.seafile.com # Specifies your host name if https is enabled.
depends_on:
  - db
  - memcached
networks:
  - seafile-net

networks:
seafile-net:

I just started to try to install this, in a similar setup to yours. When I did docker logs seafile --tail 100 I got a lot of errors due to db connection.

So, I was wondering if I didn’t change the path of the mariadb volume correctly OR if memcached also needs to be mapped to the share as well. I’m guessing here since I spent several hours to no avail.