Migrating to Docker/Version 13 from bare metal/Version 12 in one go?

Is it possible to do this? Or should I better set up a docker based version 12 of Seafile, migrate the data and then upgrade to Version 13?

The current server is running the community edition 12.0.14.

Yes, this is the recommended way.