Add extra Jibri into docker

Trying to setup multiple jibri services in docker on single node local machine. Recording is working fine with first jibri container and the 2nd jibri container is giving an error while enabling recording.

File used to setup extra jibri service

version: ‘3’

services:
jibri2:
image: jitsi/jibri
restart: {RESTART_POLICY} volumes: - {CONFIG}/jibri:/config
- /dev/shm:/dev/shm
cap_add:
- SYS_ADMIN
- NET_BIND_SERVICE
devices:
- /dev/snd:/dev/snd
environment:
- XMPP_AUTH_DOMAIN
- XMPP_INTERNAL_MUC_DOMAIN
- XMPP_RECORDER_DOMAIN
- XMPP_SERVER
- XMPP_DOMAIN
- JIBRI_XMPP_USER
- JIBRI_XMPP_PASSWORD
- JIBRI_BREWERY_MUC
- JIBRI_RECORDER_USER
- JIBRI_RECORDER_PASSWORD
- JIBRI_RECORDING_DIR
- JIBRI_FINALIZE_RECORDING_SCRIPT_PATH
- JIBRI_STRIP_DOMAIN_JID
- JIBRI_LOGS_DIR
- DISPLAY=:0
- TZ
Replaced the values on both containers
docker exec docker-jitsi-meet_jibri2_1 sed -i ‘s/Loopback/1/g’ /home/jibri/.asoundrc
docker exec docker-jitsi-meet_jibri2_1 sed -i ‘s/Loopback/2/g’ /home/jibri/.asoundrc

[root@ansnode1 docker-jitsi-meet]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0a60656186c3 jitsi/jibri “/init” 13 hours ago Up 9 hours docker-jitsi-meet_jibri2_1
6be1c2703256 docker-jitsi-meet_jvb2 “/init” 6 days ago Up 13 hours 0.0.0.0:4096->4096/udp, 0.0.0.0:10001->10001/udp, 0.0.0.0:4445->4445/tcp docker-jitsi-meet_jvb2_1
5c44c3138f51 jitsi/jibri:latest “/init” 7 days ago Exited (0) 9 hours ago docker-jitsi-meet_jibri_1
c9277e46ccda jitsi/jicofo:latest “/init” 7 days ago Up 13 hours docker-jitsi-meet_jicofo_1
19395da3f213 jitsi/jvb:latest “/init” 7 days ago Up 13 hours 0.0.0.0:4443->4443/tcp, 0.0.0.0:10000->10000/udp docker-jitsi-meet_jvb_1
b5b43c8a9f1f jitsi/prosody:latest “/init” 7 days ago Up 13 hours 5222/tcp, 5269/tcp, 5280/tcp, 5347/tcp docker-jitsi-meet_prosody_1
2cf840541738 jitsi/web:latest “/init” 7 days ago Up 13 hours 0.0.0.0:8000->80/tcp, 0.0.0.0:8443->443/tcp docker-jitsi-meet_web_1
[root@ansnode1 docker-jitsi-meet]#

Note: Jibri_1 stopped to test jibri_2

Logs: https://drive.google.com/open?id=1N8lYb8oz0NmZP9eVidvN7UzkVX94SNBu