add another property for redis on bbb-web; set freeswitch ip on webrtc-sfu; add volumes to store media files

This commit is contained in:
Felipe Cecagno 2018-07-31 22:00:33 -03:00
parent 4fdd686cfa
commit f6fa7e0945
4 changed files with 14 additions and 5 deletions

View File

@ -11,7 +11,7 @@ mkdir -p /var/bigbluebutton/published
mkdir -p /var/bigbluebutton/deleted
mkdir -p /var/bigbluebutton/unpublished
export JAVA_OPTS="${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -DsecuritySalt=${SHARED_SECRET} -Dredis.host=redis -Dbigbluebutton.web.serverURL=https://${SERVER_DOMAIN} -DattendeesJoinViaHTML5Client=true -DmoderatorsJoinViaHTML5Client=true -DsvgImagesRequired=true"
export JAVA_OPTS="${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -DsecuritySalt=${SHARED_SECRET} -Dredis.host=redis -DredisHost=redis -Dbigbluebutton.web.serverURL=https://${SERVER_DOMAIN} -DattendeesJoinViaHTML5Client=true -DmoderatorsJoinViaHTML5Client=true -DsvgImagesRequired=true"
sed -i "s|^securerandom\.source=.*|securerandom.source=file:/dev/urandom|g" ${JAVA_HOME}/lib/security/java.security
catalina.sh run

View File

@ -1,3 +1,5 @@
kurentoUrl: KURENTO_URL
kurentoIp: KURENTO_IP
redisHost: REDIS_HOST
freeswitch:
ip: FREESWITCH_IP

View File

@ -148,7 +148,6 @@ $ docker run -d --rm --name nginx -v docker_static:/var/www/bigbluebutton-defaul
$ docker cp . nginx:/var/www/bigbluebutton-default
$ docker exec -it nginx chown -R www-data:www-data /var/www/bigbluebutton-default
$ docker stop nginx
```
### Launch with docker-compose

View File

@ -17,7 +17,7 @@ services:
- redis
environment:
MONGO_URL: mongodb://mongo/bbbhtml5
METEOR_SETTINGS_MODIFIER: ".public.kurento.wsUrl = \"wss://${SERVER_DOMAIN}/bbb-webrtc-sfu\" | .public.kurento.enableVideo = true | .public.kurento.enableScreensharing = true | .public.kurento.chromeDefaultExtensionKey = \"${SCREENSHARE_EXTENSION_KEY}\" | .public.kurento.chromeDefaultExtensionLink = \"${SCREENSHARE_EXTENSION_LINK}\""
METEOR_SETTINGS_MODIFIER: ".public.kurento.wsUrl = \"wss://${SERVER_DOMAIN}/bbb-webrtc-sfu\" | .public.kurento.enableVideo = true | .public.kurento.enableScreensharing = true | .public.kurento.chromeDefaultExtensionKey = \"${SCREENSHARE_EXTENSION_KEY}\" | .public.kurento.chromeDefaultExtensionLink = \"${SCREENSHARE_EXTENSION_LINK}\" | .public.kurento.enableVideoStats = true | .public.kurento.enableListenOnly = true"
REDIS_HOST: redis
ROOT_URL: http://127.0.0.1/html5client
@ -35,6 +35,8 @@ services:
restart: unless-stopped
links:
- coturn
volumes:
- media-audio:/var/freeswitch/meetings
bbb-webrtc-sfu:
image: ${TAG_PREFIX}bbb-webrtc-sfu${TAG_SUFFIX}
@ -42,10 +44,12 @@ services:
links:
- redis
- kurento
- bbb-freeswitch
environment:
KURENTO_IP: ${EXTERNAL_IP}
KURENTO_URL: ws://kurento:8888/kurento
REDIS_HOST: redis
FREESWITCH_IP: bbb-freeswitch
coturn:
image: ${TAG_PREFIX}coturn${TAG_SUFFIX}
@ -70,6 +74,9 @@ services:
kurento:
image: ${TAG_PREFIX}kurento${TAG_SUFFIX}
restart: unless-stopped
volumes:
- media-video:/var/kurento/recordings
- media-screenshare:/var/kurento/screenshare
environment:
KMS_STUN_IP: ${EXTERNAL_IP}
KMS_STUN_PORT: 3478
@ -139,7 +146,8 @@ services:
volumes:
ssl-conf:
driver: local
static:
driver: local
bigbluebutton:
media-audio:
media-video:
media-screenshare: