Itβs absurdly complex and annoying and lacks proper documentation.
There currently is no sane way to deploy it via docker since it needs half a dozen of different containers and volumes and networks to barely work at all - overwriting/ruining your already existing setup while doing so.
The cleanest would likely be setting up a VM where you set up docker in and let Lemmy do whatever it wants.