diff --git a/app/src/config.template.js b/app/src/config.template.js index 4e37b9ad..75f8b57c 100644 --- a/app/src/config.template.js +++ b/app/src/config.template.js @@ -129,8 +129,8 @@ module.exports = { listenIps: [ { ip: '0.0.0.0', - announcedIp: getLocalIp(), // replace by public static IP address https://api.ipify.org or put '' and will be auto-detected on server start - }, + announcedIp: getLocalIp(), // replace by public static IPV4 address https://api.ipify.org + }, //announcedIp: '' will be auto-detected on server start, for docker localPC set '127.0.0.1' ], initialAvailableOutgoingBitrate: 1000000, minimumAvailableOutgoingBitrate: 600000, diff --git a/docker-compose.template.yml b/docker-compose.template.yml index ef1cd415..7c3f8cae 100644 --- a/docker-compose.template.yml +++ b/docker-compose.template.yml @@ -9,10 +9,11 @@ services: container_name: mirotalksfu hostname: mirotalksfu restart: unless-stopped - # These volumes are not mandatory, coment if you want to use it volumes: - - ./app/:/src/app/:ro - - ./public/:/src/public/:ro + - ./app/src/config.js:/src/app/src/config.js:ro + # These volumes are not mandatory, comment if you want to use it + # - ./app/:/src/app/:ro + # - ./public/:/src/public/:ro ports: - '3010:3010/tcp' - '40000-40100:40000-40100/tcp' diff --git a/package.json b/package.json index 3987979f..07b2707a 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "docker-push": "docker push mirotalk/sfu:latest", "docker-pull": "docker pull mirotalk/sfu:latest", "docker-rmc": "docker container rm mirotalksfu --force", - "docker-run": "docker run -d -p 40000-40100:40000-40100 -p 3010:3010 --name mirotalksfu mirotalk/sfu:latest", + "docker-run": "docker run -d -p 40000-40100:40000-40100 -p 3010:3010 ./app/src/config.js:/src/app/src/config.js:ro --name mirotalksfu mirotalk/sfu:latest", "docker-run-vm": "docker run -d -p 40000-40100:40000-40100 -p 3010:3010 -v ./app/:/src/app/:ro -v ./public/:/src/public/:ro --name mirotalksfu mirotalk/sfu:latest", "docker-start": "docker start mirotalksfu", "docker-stop": "docker stop mirotalksfu"