Error:the user running the script ("root") is not the owner of "/shared/seafile/seafile-data" folder, you should use the user "UNKNOWN" to run the script

I am trying to run Seafile in Portainer which is installed in OMV running on a RPi4. Seafile installs fine using Stacks but if I restart the Docker container I get this.
Error: the user running the script (“root”) is not the owner of “/shared/seafile/seafile-data” folder, you should use the user “UNKNOWN” to run the script.
I have tried creating the Volume from portainer GUI and also from CLI docker volume create seafile but same results. Here is my Docker Compose file.
- seafile-net

memcached:
image: memcached:1.5.6
container_name: seafile-memcached
entrypoint: memcached -m 256
restart: always
networks:
- seafile-net

seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
restart: always
ports:
- 8290:80 # you can change the left side to any open port
volumes:
- seafile:/shared # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=xxxxxx
- TIME_ZONE=Pacific/Auckland
depends_on:
- db
- memcached
networks:
- seafile-net
networks:
seafile-net:
volumes:
seafile:
external: true