HA + Docker Movement of files

I used to run HA os but decided to give docker-compose a try.

I installed everything correctly and my system is operating correctly. My only issue is that although I created a folder called “docker” in /home/pi i forgot to create a folder “Homeassistant” and all my HA files and docs are scattered in the root /docker folder.

Is it possible to create a folder called HA in /home/pi/docker/Hafolder and move all the content from /home/pi/docker without affecting the installation? I tried via GUI but everything broke and i lost my container from portainer…

HI,
just copy your HA files in this folder /home/pi/docker/Hafolder and recreate your container with the volume /home/pi/docker/Hafolder :/config