How to Deploy Jitsi Server With Docker Compose

How to deploy Jisti Server with docker-compose

Install jisti Server

  1. git clone latest version
1
2
3
git clone https://github.com/jitsi/docker-jitsi-meet && cd docker-jitsi-meet
	
cp env.example .env
  1. Generate security password
1
2
3
./gen-passwords.sh
#mkdir -p ~/.jitsi-meet-cfg/{web/letsencrypt,transcripts,prosody,jicofo,jvb}
mkdir -p ~/.jitsi-meet-cfg/{web/letsencrypt,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri}

Modify .env

  1. copy env.example to .env.
1
cp env.example .env
  1. Modify key and value as followed.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
CONFIG=~/.jitsi-meet-cfg

# Exposed HTTP port
HTTP_PORT=80

# Exposed HTTPS port
HTTPS_PORT=443

# System time zone
TZ=Asia/Shanghai

# Public URL for the web service
PUBLIC_URL=https://meet.mydomain.com

#
# Let's Encrypt configuration
#

# Enable Let's Encrypt certificate generation
ENABLE_LETSENCRYPT=1

# Domain for which to generate the certificate
LETSENCRYPT_DOMAIN=meet.mydomain.com

# E-Mail for receiving important account notifications (mandatory)
LETSENCRYPT_EMAIL=myname@mydomain.com

# Enable authentication
ENABLE_AUTH=1

# Enable guest access
ENABLE_GUESTS=1

# Select authentication type: internal, jwt or ldap
AUTH_TYPE=internal

# Redirect HTTP traffic to HTTPS
# Necessary for Let's Encrypt, relies on standard HTTPS port (443)
ENABLE_HTTP_REDIRECT=1

Add Users for internal auth

1
2
3
docker exec -it docker-jitsi-meet_prosody_1 bash
# create a user `user1`
prosodyctl --config /config/prosody.cfg.lua register user1 meet.jitsi 

Run it

1
docker-compose up -d

Backup

1
2
3
4
5
6
#for configure folder
~/.jitsi-meet-cfg
# for letencryption folder
~/.jitsi-meet-cfg/web/letsencrypt
# for configure
./.env

Firewall Setup

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
apt install ufw
ufw status
ufw default deny
ufw allow 22
ufw allow 443
ufw allow 80
ufw allow 10000/udp
ufw allow 4443
ufw enable
ufw status

Reference

Built with Hugo
Theme Stack designed by Jimmy