From 0ac6180479fea22ee9ea740a7c0a540950971df5 Mon Sep 17 00:00:00 2001 From: Luan Estradioto Date: Mon, 3 Jun 2024 17:58:44 -0300 Subject: [PATCH 1/2] feat: add jitsi template --- public/svgs/jitsi.svg | 8 +++ templates/compose/jitsi.env | 8 +++ templates/compose/jitsi.yaml | 120 +++++++++++++++++++++++++++++++++++ 3 files changed, 136 insertions(+) create mode 100644 public/svgs/jitsi.svg create mode 100644 templates/compose/jitsi.env create mode 100644 templates/compose/jitsi.yaml diff --git a/public/svgs/jitsi.svg b/public/svgs/jitsi.svg new file mode 100644 index 000000000..6257659ee --- /dev/null +++ b/public/svgs/jitsi.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/templates/compose/jitsi.env b/templates/compose/jitsi.env new file mode 100644 index 000000000..46816cb73 --- /dev/null +++ b/templates/compose/jitsi.env @@ -0,0 +1,8 @@ +JITSI_IMAGE_VERSION=unstable +JIBRI_RECORDER_PASSWORD=$SERVICE_PASSWORD_JITSI +JIBRI_XMPP_PASSWORD=$SERVICE_PASSWORD_JITSI +JICOFO_AUTH_PASSWORD=$SERVICE_PASSWORD_JITSI +JIGASI_XMPP_PASSWORD=$SERVICE_PASSWORD_JITSI +JVB_AUTH_PASSWORD=$SERVICE_PASSWORD_JITSI +PUBLIC_URL= +TZ=UTC \ No newline at end of file diff --git a/templates/compose/jitsi.yaml b/templates/compose/jitsi.yaml new file mode 100644 index 000000000..34155701a --- /dev/null +++ b/templates/compose/jitsi.yaml @@ -0,0 +1,120 @@ +# documentation: https://jitsi.github.io/handbook/docs/intro +# slogan: World's easiest way to add meetings to your apps +# env_file: jitsi.env +# logo: svgs/jitsi.svg +# tags: video, conferencing, meetings, communication, open-source + +services: + jitsi-web: + image: "jitsi/web:${JITSI_IMAGE_VERSION}" + container_name: jitsi-web + restart: unless-stopped + ports: + - "8001:80" + - "8443:443" + volumes: + - ~/.jitsi-meet-cfg/web:/config:Z + - ~/.jitsi-meet-cfg/web/crontabs:/var/spool/cron/crontabs:Z + - ~/.jitsi-meet-cfg/transcripts:/usr/share/jitsi-meet/transcripts:Z + environment: + - SERVICE_FQDN_JITSI + - PUBLIC_URL=$SERVICE_FQDN_JITSI + - TZ + networks: + meet.jitsi: + aliases: + - meet.jitsi + depends_on: + - jvb + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost"] + interval: 2s + timeout: 10s + retries: 15 + + prosody: + image: "jitsi/prosody:${JITSI_IMAGE_VERSION}" + expose: + - '5222' + - '5347' + - '5280' + container_name: jitsi-xmpp + restart: unless-stopped + volumes: + - ~/.jitsi-meet-cfg/prosody/config:/config:Z + - ~/.jitsi-meet-cfg/prosody/prosody-plugins-custom:/prosody-plugins-custom:Z + environment: + - JICOFO_AUTH_PASSWORD + - JVB_AUTH_PASSWORD + - PUBLIC_URL=$SERVICE_FQDN_JITSI + - TZ + networks: + meet.jitsi: + aliases: + - xmpp.meet.jitsi + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:5280/http-bind"] + interval: 2s + timeout: 10s + retries: 15 + + jicofo: + image: "jitsi/jicofo:${JITSI_IMAGE_VERSION}" + container_name: jitsi-jicofo + restart: unless-stopped + volumes: + - ~/.jitsi-meet-cfg/jicofo:/config:Z + environment: + - XMPP_SERVER=prosody + - JICOFO_AUTH_PASSWORD + - TZ + - JICOFO_ENABLE_HEALTH_CHECKS=1 + depends_on: + - prosody + networks: + meet.jitsi: + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8888/about/health"] + interval: 2s + timeout: 10s + retries: 15 + + jvb: + image: "jitsi/jvb:${JITSI_IMAGE_VERSION}" + container_name: jitsi-jvb + restart: unless-stopped + expose: + - '10000:10000/udp' + - '8080:8080' + - '10000' + volumes: + - ~/.jitsi-meet-cfg/jvb:/config:Z + environment: + - JVB_ADVERTISE_IPS + - JVB_AUTH_PASSWORD + - PUBLIC_URL=$SERVICE_FQDN_JITSI + - TZ + - XMPP_SERVER=prosody + depends_on: + - prosody + networks: + meet.jitsi: + labels: + - "traefik.enable=true" + - "traefik.udp.routers.my-udp-router.entrypoints=video" + - "traefik.udp.routers.my-udp-router.service=my-udp-service" + - "traefik.udp.services.my-udp-service.loadbalancer.server.port=10000" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8080/about/health"] + interval: 2s + timeout: 10s + retries: 15 + +networks: + meet.jitsi: + +volumes: + jitsi-web: + jitsi-xmpp: + jitsi-jicofo: + jitsi-jvb: \ No newline at end of file From f618bdf5bd3612671019cc528ee1202143909141 Mon Sep 17 00:00:00 2001 From: Luan Estradioto Date: Thu, 31 Oct 2024 23:32:52 -0300 Subject: [PATCH 2/2] removed env --- templates/compose/jitsi.env | 8 -------- templates/compose/jitsi.yaml | 19 ++++++++++++------- 2 files changed, 12 insertions(+), 15 deletions(-) delete mode 100644 templates/compose/jitsi.env diff --git a/templates/compose/jitsi.env b/templates/compose/jitsi.env deleted file mode 100644 index 46816cb73..000000000 --- a/templates/compose/jitsi.env +++ /dev/null @@ -1,8 +0,0 @@ -JITSI_IMAGE_VERSION=unstable -JIBRI_RECORDER_PASSWORD=$SERVICE_PASSWORD_JITSI -JIBRI_XMPP_PASSWORD=$SERVICE_PASSWORD_JITSI -JICOFO_AUTH_PASSWORD=$SERVICE_PASSWORD_JITSI -JIGASI_XMPP_PASSWORD=$SERVICE_PASSWORD_JITSI -JVB_AUTH_PASSWORD=$SERVICE_PASSWORD_JITSI -PUBLIC_URL= -TZ=UTC \ No newline at end of file diff --git a/templates/compose/jitsi.yaml b/templates/compose/jitsi.yaml index 34155701a..957661c1d 100644 --- a/templates/compose/jitsi.yaml +++ b/templates/compose/jitsi.yaml @@ -1,12 +1,11 @@ # documentation: https://jitsi.github.io/handbook/docs/intro # slogan: World's easiest way to add meetings to your apps -# env_file: jitsi.env # logo: svgs/jitsi.svg # tags: video, conferencing, meetings, communication, open-source services: jitsi-web: - image: "jitsi/web:${JITSI_IMAGE_VERSION}" + image: "jitsi/web:${JITSI_IMAGE_VERSION:-unstable}" container_name: jitsi-web restart: unless-stopped ports: @@ -19,7 +18,13 @@ services: environment: - SERVICE_FQDN_JITSI - PUBLIC_URL=$SERVICE_FQDN_JITSI - - TZ + - JITSI_IMAGE_VERSION=unstable + - JIBRI_RECORDER_PASSWORD=$SERVICE_PASSWORD_JITSI + - JIBRI_XMPP_PASSWORD=$SERVICE_PASSWORD_JITSI + - JICOFO_AUTH_PASSWORD=$SERVICE_PASSWORD_JITSI + - JIGASI_XMPP_PASSWORD=$SERVICE_PASSWORD_JITSI + - JVB_AUTH_PASSWORD=$SERVICE_PASSWORD_JITSI + - TZ=UTC networks: meet.jitsi: aliases: @@ -33,7 +38,7 @@ services: retries: 15 prosody: - image: "jitsi/prosody:${JITSI_IMAGE_VERSION}" + image: "jitsi/prosody:${JITSI_IMAGE_VERSION:-unstable}" expose: - '5222' - '5347' @@ -59,7 +64,7 @@ services: retries: 15 jicofo: - image: "jitsi/jicofo:${JITSI_IMAGE_VERSION}" + image: "jitsi/jicofo:${JITSI_IMAGE_VERSION:-unstable}" container_name: jitsi-jicofo restart: unless-stopped volumes: @@ -80,7 +85,7 @@ services: retries: 15 jvb: - image: "jitsi/jvb:${JITSI_IMAGE_VERSION}" + image: "jitsi/jvb:${JITSI_IMAGE_VERSION:-unstable}" container_name: jitsi-jvb restart: unless-stopped expose: @@ -117,4 +122,4 @@ volumes: jitsi-web: jitsi-xmpp: jitsi-jicofo: - jitsi-jvb: \ No newline at end of file + jitsi-jvb: