I’ll add that you should consider putting the database on a SSD in a separate location for better performance and so you can make backups more easily. That’s one of the benefits of docker in that you can easily make your own dir structure that suits your needs.
I use /containers/appdata/<container name> for config data but you can use any structure you like. I wouldn’t use ~/.config as that may conflict with non-container data.