jitsi stack

This commit is contained in:
Pim Kunis 2023-05-07 14:52:00 +02:00
parent 9092f2cab4
commit 8d9cb1dfce
4 changed files with 136 additions and 0 deletions

View file

@ -8,6 +8,7 @@ docker_node_labels:
- hostname: swarmpub2
labels:
public: "true"
jitsi: "true"
- hostname: swarmpriv1
labels:
private: "true"

View file

@ -15,3 +15,4 @@
- {role: kms, tags: kms}
- {role: swarm_dashboard, tags: swarm_dashboard}
- {role: shephard, tags: shephard}
- {role: jitsi, tags: jitsi}

View file

@ -0,0 +1,119 @@
version: '3.5'
networks:
traefik:
external: true
jitsi:
volumes:
web-config:
crontabs:
transcripts:
prosody-plugins-custom:
prosody-config:
jicofo-config:
jvb-config:
services:
web:
image: jitsi/web:stable-8218
volumes:
- web-config:/config
- crontabs:/var/spool/cron/crontabs
- transcripts:/user/share/jitsi-meet/transcripts
environment:
- DISABLE_HTTPS=1
- ENABLE_AUTH=1
- ENABLE_GUESTS=1
- ENABLE_IPV6=1
- ENABLE_LETSENCRYPT=0
- PUBLIC_URL=https://meet.pim.kunis.nl
- TZ=Europe/Amsterdam
networks:
- jitsi
- traefik
deploy:
placement:
constraints:
- "node.labels.jitsi == true"
labels:
- traefik.enable=true
- traefik.http.routers.jitsi-web.entrypoints=websecure
- traefik.http.routers.jitsi-web.rule=Host(`meet.pim.kunis.nl`)
- traefik.http.routers.jitsi-web.tls=true
- traefik.http.routers.jitsi-web.tls.certresolver=letsencrypt
- traefik.http.services.jitsi-web.loadbalancer.server.port=80
- traefik.http.routers.jitsi-web.service=jitsi-web
- traefik.docker.network=traefik
prosody:
image: jitsi/prosody:stable-8218
expose:
- '5222'
- '5347'
- '5280'
volumes:
- prosody-config:/config
- prosody-plugins-custom:/prosody-plugins-custom
environment:
- AUTH_TYPE=internal
- ENABLE_AUTH=1
- ENABLE_GUESTS=1
- ENABLE_IPV6=1
- ENABLE_LOBBY=1
- JIBRI_RECORDER_PASSWORD=279fd02ecb4f3993b8a7793178fdba4d
- JIBRI_XMPP_PASSWORD=318f5f8bcf393227da71c1653f3756ca
- JICOFO_AUTH_PASSWORD=98a5071b500dea9184f72921bb062739
- JIGASI_XMPP_PASSWORD=80d60b0e6df379168b380dbf570954d2
- JVB_AUTH_PASSWORD=221db0f442cbbbee62639a77ec7e973c
- PUBLIC_URL=https://meet.pim.kunis.nl
- TZ=Europe/Amsterdam
networks:
- jitsi
deploy:
placement:
constraints:
- "node.labels.jitsi == true"
jicofo:
image: jitsi/jicofo:stable-8218
volumes:
- jicofo-config:/config
environment:
- AUTH_TYPE=internal
- ENABLE_AUTH=1
- JICOFO_AUTH_PASSWORD=98a5071b500dea9184f72921bb062739
- SENTRY_DSN=0
- TZ=Europe/Amsterdam
depends_on:
- prosody
networks:
- jitsi
deploy:
placement:
constraints:
- "node.labels.jitsi == true"
jvb:
image: jitsi/jvb:stable-8218
ports:
- '54562:54562/udp'
volumes:
- jvb-config:/config
environment:
- JVB_ADVERTISE_IPS=84.245.14.149,192.168.30.8
- JVB_AUTH_PASSWORD=221db0f442cbbbee62639a77ec7e973c
- JVB_PORT=54562
- PUBLIC_URL=https://meet.pim.kunis.nl
- SENTRY_DSN=0
- COLIBRI_REST_ENABLED=0
- TZ=Europe/Amsterdam
depends_on:
- prosody
networks:
- jitsi
- traefik
deploy:
placement:
constraints:
- "node.labels.jitsi == true"

View file

@ -0,0 +1,15 @@
- name: Create working directory
file:
path: /srv/jitsi
state: directory
- name: Copy Docker stack file
copy:
src: "{{ role_path }}/docker-stack.yml"
dest: /srv/jitsi/docker-stack.yml
- name: Deploy Docker stack
docker_stack:
name: jitsi
compose:
- /srv/jitsi/docker-stack.yml