Jibri installation in separate system with ejabberd

Hi, im able to setup jitsi-meet video conference with prosody in the same system. But as you guys are saying Jibri is not running in the same system. so im going to install jibri in separate system, but i have good knowledge on ejabberd, so i want to go with it.
The question is, will it going to work ejabberd and Jibri in the one server and rest all jitsi meet services in another server. Please Suggest me the best way to install with ejabberd and jibri for recording.

‘Separate system’ as different machine/vm. Jibri needs to be connected to same xmmp server that jitsi-meet uses.