I have checked into this and it is an option, but the issue I have with this approach is that you can’t easily move notes between profiles. Switching profiles is a PITA, and you’d probably be better off running two different instances of Joplin, but that’s also cumbersome.
This is what I’d prefer to do. I imagine it would be a simple addition to Joplin.