RockyLinux9.7 docker部署Jisti Meet

一、防火墙放行端口

bash 复制代码
setenforce 0
sed -i 's/^SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

firewall-cmd --permanent --add-port=8000/tcp
firewall-cmd --permanent --add-port=8443/tcp
firewall-cmd --permanent --add-port=10000/udp
firewall-cmd --permanent --add-port=3478/udp
firewall-cmd --permanent --add-port=5349/tcp
firewall-cmd --reload
firewall-cmd --list-ports

二、安装 Docker & Compose

bash 复制代码
dnf install -y dnf-plugins-core
dnf config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
dnf install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

systemctl enable docker
systemctl start docker

配置docker镜像加速器

bash 复制代码
# 创建 docker 配置目录
mkdir -p /etc/docker

# 写入镜像加速器配置
cat > /etc/docker/daemon.json << EOF
{
  "registry-mirrors": ["https://docker.1ms.run"]
}
EOF

# 重新加载配置
systemctl daemon-reload

# 重启 docker
systemctl restart docker

验证是否生效

bash 复制代码
docker info

拉到最下面,如果看到 Registry Mirrors 下面显示这几个地址,就说明配置成功。

三、拉取官方代码

1.安装git(非必须)

bash 复制代码
dnf install -y git

2.拉取官方代码

bash 复制代码
mkdir -p /opt/jitsi
cd /opt/jitsi
git clone https://github.com/jitsi/docker-jitsi-meet.git
cd docker-jitsi-meet
cp env.example .env

四、配置.env

bash 复制代码
CONFIG=~/.jitsi-me-cfg
# 域名配置
DOMAIN=cn.123211100000.xyz
PUBLIC_URL=https://meet.123211100000.xyz

# 公网服务器IP
DOCKER_HOST_ADDRESS=120.24.188.51

# 端口使用标准80/443,也可用8000/8443
HTTP_PORT=80
HTTPS_PORT=443

# 时区
TZ=Asia/Shanghai

# 自动申请Let's Encrypt免费SSL证书(公网域名必备)
ENABLE_LETSENCRYPT=0
LETSENCRYPT_EMAIL=admin@cn.123211100000.xyz

# 开启自有证书,不用自动签发
USE_OWN_CERTIFICATE=1

# 证书路径
SSL_CERT=/root/ssl/fullchain.pem
SSL_KEY=/root/ssl/privkey.pem


# 访客模式、权限配置
ENABLE_GUESTS=1
AUTH_TYPE=internal

# 资源优化 4核16G 专属参数
JVB_MEMORY_LIMIT=8G
JICOFO_MAX_PARTICIPANTS=100
JVB_MAX_BITRATE=2048

# 密码留空,用脚本自动生成
JICOFO_SECRET=
JVB_SECRET=
PROSODY_PASSWORD=

# 关闭无用的额外服务
ENABLE_JIGASI=0
ENABLE_JIBRI=0

五、生成密码

bash 复制代码
./gen-passwords.sh

六、拉取 Jitsi 镜像

bash 复制代码
docker compose pull

七、启动

bash 复制代码
docker compose up -d
相关推荐
修己xj1 小时前
nslookup 使用指南:两种模式与常用查询技巧
linux
唠玖馆3 小时前
文件系统详解
linux·文件系统·ext2
xbzb3 小时前
镜像到底存在哪:/var/lib/docker 的四级映射与 daemon.json 配置
docker·容器·json·镜像·daemon.json·四级
GeW3 小时前
当Linux内核开始“确定性”,制造高端化才有了底层语法
linux
星恒随风5 小时前
MySQL 从零入门(三):表的约束详解
linux·服务器·数据库·笔记·mysql
StarsGreen7 小时前
libva在intel平台上的前端流程简介
linux
坤坤子吖10 小时前
Linux网络编程:自定义应用层协议与 JSON 序列化
linux·服务器·网络·c++·笔记·json
方便面不加香菜11 小时前
Docker Volume -- 管理卷Volume详解
运维·docker·容器
Felven11 小时前
华为鲲鹏920s芯片serdestool工具使用说明
linux·运维·服务器·华为·鲲鹏920·serdestool
江湖有缘11 小时前
Docker实战 | 使用Docker部署lemonitor镜像站点列表程序
运维·docker·容器