From 0a1027a1ac8390422033b8eeff1f7412b58d961d Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sun, 22 Mar 2020 15:09:20 +0100 Subject: Configured jitsi-xmpp --- docker/jitsi/README.md | 12 ++++++++++++ docker/jitsi/docker-compose.yml | 13 +++++++++++++ docker/jitsi/jitsi-xmpp/Dockerfile | 5 ++++- docker/jitsi/jitsi-xmpp/entrypoint.sh | 10 ++++++++-- docker/jitsi/jitsi-xmpp/external_components.cfg.lua | 2 ++ 5 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 docker/jitsi/docker-compose.yml create mode 100644 docker/jitsi/jitsi-xmpp/external_components.cfg.lua diff --git a/docker/jitsi/README.md b/docker/jitsi/README.md index d18a85b..738a63d 100644 --- a/docker/jitsi/README.md +++ b/docker/jitsi/README.md @@ -1 +1,13 @@ This installation is inspired by: https://github.com/jitsi/jitsi-meet/blob/master/doc/manual-install.md + +To build images: + +``` +docker-compose build +``` + +To run stack: + +``` +docker-compose up +``` diff --git a/docker/jitsi/docker-compose.yml b/docker/jitsi/docker-compose.yml new file mode 100644 index 0000000..0f3adcf --- /dev/null +++ b/docker/jitsi/docker-compose.yml @@ -0,0 +1,13 @@ +version: '2.0' +services: + jitsi-xmpp: + build: ./jitsi-xmpp + ports: + - "5222:5222" + - "5347:5347" + - "5280:5280" + environment: + - JITSI_SECRET_VIDEOBRIDGE=S3CR3T01 + - JITSI_SECRET_JICOFO_COMPONENT=S3CR3T02 + - JITSI_SECRET_JICOFO_USER=S3CR3T03 + diff --git a/docker/jitsi/jitsi-xmpp/Dockerfile b/docker/jitsi/jitsi-xmpp/Dockerfile index 03bb8f3..4d71a13 100644 --- a/docker/jitsi/jitsi-xmpp/Dockerfile +++ b/docker/jitsi/jitsi-xmpp/Dockerfile @@ -3,4 +3,7 @@ FROM debian:buster RUN apt-get update && \ apt-get install -y prosody - +COPY external_components.cfg.lua /etc/prosody/conf.d/external_components.cfg.lua +COPY entrypoint.sh /usr/local/bin/entrypoint +ENTRYPOINT ["/usr/local/bin/entrypoint"] +CMD ["/usr/bin/prosody"] diff --git a/docker/jitsi/jitsi-xmpp/entrypoint.sh b/docker/jitsi/jitsi-xmpp/entrypoint.sh index 017a756..e6ab4e5 100755 --- a/docker/jitsi/jitsi-xmpp/entrypoint.sh +++ b/docker/jitsi/jitsi-xmpp/entrypoint.sh @@ -37,10 +37,16 @@ ln -sf \ prosodyctl cert generate jitsi.deuxfleurs.fr prosodyctl cert generate auth.jitsi.deuxfleurs.fr +mkdir -p /usr/local/share/ca-certificates/ ln -sf \ - /var/lib/prosody/auth.jitsi.deuxfleurs.fr.crt + /var/lib/prosody/auth.jitsi.deuxfleurs.fr.crt \ /usr/local/share/ca-certificates/auth.jitsi.deuxfleurs.fr.crt prosodyctl register focus auth.jitsi.deuxfleurs.fr ${JITSI_SECRET_JICOFO_USER} -exec "$@" +mkdir /run/prosody +touch /run/prosody/prosody.pid +chown -R prosody:prosody /run/prosody + +cd /var/lib/prosody +su - prosody -s /bin/bash -c "$@" diff --git a/docker/jitsi/jitsi-xmpp/external_components.cfg.lua b/docker/jitsi/jitsi-xmpp/external_components.cfg.lua new file mode 100644 index 0000000..beaaa87 --- /dev/null +++ b/docker/jitsi/jitsi-xmpp/external_components.cfg.lua @@ -0,0 +1,2 @@ +component_ports = { 5347 } +component_interface = "0.0.0.0" -- cgit v1.2.3