You can do this by creating your own implementation of
MappingsSource, then supplying this to the config object when you create the WireMock server in code.
Note: this will still keep stubs in memory, but back them up to whatever store you provide so it's fine for persistence but won't work as part of a clustering solution.