This is because you were talking about snaps and Ubumtu. If you had been talking Arch and rice they would have reconfigured their brains and returned you nicely.
I do this always for any service but also do a dump of the db in the top directory to keep a clean copy to could be version independent. They wont take much more space ho estly
It doesn't cover permissions unless you are willing to setup http auth on your webserver but I really enjoy mdbooks. I looks clean and still is just markdown.
I guess that's fair for single service composes but I don't really trust composes with multiple services to gracefully handle only recreating one of the containers
iKidnapped