No /config directory found during installation

I’m running HA in Docker on a NAS. Everything runs 100% fine since I installed it 6 weeks ago.

Due to a speeling mistake, the Docker container pointed “/config” to a directory which didn’t exist. Consequently, HA put all the configuration files and logs etc into the root directory instead.

I quickly caught the mistake and fixed the Docker container settings to point to the actual /config directory, but HA still used the root directory for all the files. I tried moving all the files into /config, but HA just created new blank files in the root instead. So until today, my /config directory remains empty.

How can I force HA to use the real /config directory?

Should I just build a new Docker container and start over? If so, won’t my backup still be incorrectly configured?