Importing users from standalone database which uses bcrypt password hashing

Hello Nextcloud Users!

I have standalone database (I mean it is not connected to any Nextcloud instance) which stores user’s emails and password. Passwords are hashed using bcrypt algorithm. Now I need to transfer all mentioned records to the database which was created by Nextcloud, when I install Docker stack including official Nextcloud server image and official MariaDB image.

My goal is to give users ability to login to my new Nextcloud instance using their previous emails and passwords.

How can I achieve it?

Any suggestions greatly appreciated!