How can I do a clean installation with appdata local and data on my NAS

Hi

After trying out Seafile I decided to sue Seafile permanently.

I did manage to get Seafile, use the reverse proxy that I have, and also use a MySQL that I already have running, so i only have 1 container. In may test I stored everything locally, but going forwar I want to store ‘files’ on the NAS, and the rest locally.

Here is the yaml part:

seafile:

image: ${SEAFILE_IMAGE:-seafileltd/seafile-mc:12.0-latest}

container_name: seafile

ports:

  - "18080:80"

volumes:

  \# App config/logs stay local

  - /srv/containers/seafile/appdata:/shared

  \# Only user file blobs go to NAS

  - /srv/containers/seafile/data:/shared/seafile/seafile-data 

But when I bring up the conatiner it does not install correctly because the data is already 'present, so the installer things that this is not a new installation.

What can I do to make this work ?

Thanks

Kind regards

Steen

I hoped someone who had a fix would answer. As far as I know this just can’t be done. The basic Docker model for deploying things doesn’t respect customization. I tried to do something similar when I was first testing the docker setup and finally I gave up on getting it to work.

So how do I use my NAS to store files ?

I have even tried to have everything on the NAS but I get strange permission errors in MySQL

Do I really need to install NextCloud ?

Why not store the whole volume to NAS? Like

/srv/containers/seafile-app-data:/shared 

I tried but I get strange permission errors from Mysql and Niginx

But if you have a guide or documentation on what permissions I need on the share I am all ears

What permission errors did you have?

I have created a new topic with what I have done: How can I use a NFS share from my TrueNas with Seafile?