How to move seafile-data folder to my hard drive when using docker

I was following the tutorial exactly on this page: https://manual.seafile.com/docker/deploy_seafile_with_docker/, and it worked perfectly fine. I then moved the seafile-data folder inside /opt/seafile-data/seafile to my hard drive, but I have no idea how to link it to docker…
image

I am writing my docker compose file like this but it didn’t work, and Nginx kept showing 502 errors…

I have tried to access the data inside the docker container by using

sudo docker exec -it seafile bash

and seafile-data folder which I moved was showing correct contents…

I’m really appreciated if someone can have a look at this issue and give some comments… (Maybe showing the correct file structure inside the /opt/seafile-data would help a lot)

Ahhhh… Magic happened. I just left it alone for few hours and it’s now performing fine…