diff --git a/docker-compose.yml b/docker-compose.yml index 5819c3e..f8b3d45 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -408,6 +408,7 @@ services: - JVB_PORT - JVB_MUC_NICKNAME - JVB_STUN_SERVERS + - JVB_LOG_FILE - JVB_OCTO_BIND_ADDRESS - JVB_OCTO_REGION - JVB_OCTO_RELAY_ID diff --git a/jvb/rootfs/etc/services.d/jvb/run b/jvb/rootfs/etc/services.d/jvb/run index 09b9c3e..d499fc0 100644 --- a/jvb/rootfs/etc/services.d/jvb/run +++ b/jvb/rootfs/etc/services.d/jvb/run @@ -4,4 +4,7 @@ export JAVA_SYS_PROPS="-Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/ -Dnet. DAEMON=/usr/share/jitsi-videobridge/jvb.sh -exec s6-setuidgid jvb /bin/bash -c "exec $DAEMON" +JVB_CMD="exec $DAEMON" +[ -n "$JVB_LOG_FILE" ] && JVB_CMD="$JVB_CMD 2>&1 | tee $JVB_LOG_FILE" + +exec s6-setuidgid jvb /bin/bash -c "$JVB_CMD"