Docker Database Location

I’m migrating my Syncthing implementation to a Docker swarm. The documentation for the container doesn’t specify where the config & database are stored. I know, by default they are stored under the user’s home directory, but that information isn’t available in the container.

Where are the config & database stored in the container so I can map them to persistent storage?

The container stores config and database under /var/syncthing/config, with /var/syncthing being $HOME in the container.