I am using docker to deploy Janus server, but it has been failing, here are my operation steps, can someone help me look at it ::
1.
mkdir -p /home/janus-docker/conf
mkdir -p /home/janus-docker/ssl
mkdir -p /home/janus-docker/record
cd /home/janus-docker/conf
git clone https://github.com/meetecho/janus-gateway/blob/master/conf/janus.jcfg.sample.in
git clone https://github1s.com/meetecho/janus-gateway/blob/master/conf/janus.transport.http.jcfg.sample
mv janus.jcfg.sample.in janus.jcfg
mv janus.transport.http.jcfg.sample janus.transport.http.jcfg
cd /home/janus-docker && touch docker-compose.yml
-------------------yaml File configuration content-------------------------------
version: '1.2.0'
services:
janus-gateway:
image: 'sucwangsr/janus-webrtc-gateway-docker:1.2.0'
command: ["/usr/local/bin/janus", "-F", "/usr/local/etc/janus"]
network_mode: "host"
volumes:
- "/home/janus-docker/conf/janus.transport.http.jcfg:/usr/local/etc/janus/janus.transport.http.jcfg"
- "/home/janus-docker/conf/janus.jcfg:/usr/local/etc/janus/janus.jcfg"
- "/home/janus-docker/record:/home/janus-gateway/record"
- "/home/janus-docker/ssl:/home/ssl"
restart: always
- Modify some configurations
------------------janus.jcfg-----------------------
configs_folder = "/usr/local/etc/janus"
plugins_folder = "/usr/local/lib/janus/plugins"
transports_folder = "/usr/local/lib/janus/transports"
events_folder = "/usr/local/lib/janus/events"
loggers_folder = "/usr/local/lib/janus/loggers"
api_secret = "sujanxxusks"
token_auth_secret = "sujanxxocks"
token_auth = true
admin_secret = "suaanusoverd"
media:{
#ipv6 = true
#min_nack_queue = 500
rtp_port_range = "17001-19001"
#dtls_mtu = 1200
#no_media_timer = 1
#slowlink_threshold = 4
#twcc_period = 100
#dtls_timeout = 500
}
--------------janus.transport.http.jcfg-------------------------------
general: {
base_path = "/janus"
http = true
port = 18088
https = false
}
cd /home/janus-docker
docker-compose up -d
- Connect to janus
const initJanus = () => {
Janus.init({
debug: true,
dependencies: Janus.useDefaultDependencies({
adapter,
}),
callback: () => {
if (!Janus.isWebrtcSupported()) {
Janus.log("No WebRTC support... ");
return;
}
},
});
uuid.value = "videoCall" + Janus.randomString(12);
janus.value = new Janus({
server: "http://my-local-Ip:18088/janus",
apisecret: "cxyi7Test",
// iceServers: [{ urls: "stun:stun.l.google.com:19302" }],
success: () => {
console.log("success");
},
error: (error) => {
Janus.log(error);
},
destroyed: () => {
console.log("destroyed");
},
});
};
But it kept coming back, like this
Can somebody take a look at this for me? I can’t fix this