[docker] How to move storage from SSD /opt/... to /srv/ on a HDD

HI everyone,
I have successfully installed Seafile CE with Docker on my “Green IT” personal server : Ubuntu 18.04 with a small SSD (mounted /) and a large and slow HDD mounted /srv) with power management set at 127.
I first tried with this configuration : -v /srv/seafile-data:/shared \ Works fine, but my hdd keeps on stop/start every 5 minutes !

I’ve then tried -v /opt/seafile-data:/shared \ and moved /opt/seafile-data/seafile/seafile-data/storage to /srv/storage and added a sym link to the moved directory.

Restarted the container and got an error when trying to log in.

Is there a clean way to achievie this ?

Note: I have looked at this thread : Spin down HDD with seafile-data but don’t know how to do with Docker.

this does not address your question regarding symlink,
only the start stop of every “5 minutes”, this looks like it might be related to this issue, still not solved:

if this is true, either you log is also on the disk or while doing this seafile accesses the libraries on disk

[09/08/2018 12:40:35 PM] size-sched.c(96): Repo size compute queue size is 0
[09/08/2018 12:45:35 PM] size-sched.c(96): Repo size compute queue size is 0
[09/08/2018 12:50:35 PM] size-sched.c(96): Repo size compute queue size is 0
[09/08/2018 12:55:35 PM] size-sched.c(96): Repo size compute queue size is 0
[09/08/2018 01:00:35 PM] size-sched.c(96): Repo size compute queue size is 0
[09/08/2018 01:05:35 PM] size-sched.c(96): Repo size compute queue size is 0