lab-ansible/roles/apps/templates/compose-files/jitsi.yml.j2
2024-05-15 21:24:30 +02:00

79 lines
1.9 KiB
Django/Jinja

{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
services:
meet:
image: jitsi/web:{{ apps_vars.jitsi.version }}
restart: always
environment:
DISABLE_HTTPS: 1
PUBLIC_URL: {{ apps_vars.jitsi.domain }}
ENABLE_AUTH: 1
ENABLE_GUESTS: 1
networks:
meet.jitsi:
{{ apps_shared_docker_network }}:
aliases:
- jitsi
volumes:
- "./data/web/transcripts:/usr/share/jitsi-meet/transcripts:rw"
depends_on:
- jvb
prosody:
image: jitsi/prosody:{{ apps_vars.jitsi.version }}
restart: always
environment:
JICOFO_AUTH_PASSWORD: {{ jitsi_passwords.jicofo_auth }}
JVB_AUTH_PASSWORD: {{ jitsi_passwords.jvb_auth }}
ENABLE_AUTH: 1
ENABLE_GUESTS: 1
AUTH_TYPE: internal
networks:
meet.jitsi:
aliases:
- xmpp.meet.jitsi
volumes:
- "./data/prosody/plugins:/prosody-plugins-custom:rw"
- "./data/prosody/config:/config:rw"
expose:
- 5222
- 5269
- 5280
- 5347
jicofo:
image: jitsi/jicofo:{{ apps_vars.jitsi.version }}
restart: always
environment:
JICOFO_AUTH_PASSWORD: {{ jitsi_passwords.jicofo_auth }}
ENABLE_AUTH: 1
AUTH_TYPE: internal
networks:
- meet.jitsi
depends_on:
- prosody
jvb:
image: jitsi/jvb:{{ apps_vars.jitsi.version }}
restart: always
environment:
JVB_AUTH_PASSWORD: {{ jitsi_passwords.jvb_auth }}
PUBLIC_URL: {{ apps_vars.jitsi.domain }}
{% if hostname in groups['production'] %}
JVB_ADVERTISE_IPS: {{ home_ipv4 }},{{ ansible_default_ipv6.address }}
{% else %}
JVB_ADVERTISE_IPS: {{ ansible_host }}
{% endif %}
networks:
- meet.jitsi
ports:
- 10000:10000/udp
depends_on:
- prosody
networks:
meet.jitsi:
{{ apps_shared_docker_network }}:
external: true