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
相关推荐
GanGanGanGan_1 小时前
CentOS 7.9 glibc 2.17 源码编译升级到 glibc 2.31
linux·运维·centos·glibc
charlie1145141911 小时前
嵌入式Linux驱动开发——class 和 device 模型 - 自动创建设备节点的幕后机制
linux·运维·驱动开发
梦想与想象-广州大智汇3 小时前
自建docker加速镜像,使用 Cloudflare Workers/Pages 部署加速教程
运维·docker·容器
枳实-叶3 小时前
【Linux驱动开发】第四天:dmesg日志全解+驱动加载失败极速排查
linux·运维·驱动开发
wdfk_prog4 小时前
正常关闭虚拟机时,不要点“关机”,而要点“关闭客户机”
linux·c语言·网络·ide·vscode
AI服务老曹5 小时前
架构师视角:如何构建支持GB28181/RTSP的异构AI视频平台?从Docker部署到源码交付的深度实践
人工智能·docker·音视频
fish_xk5 小时前
Linux开方工具
linux·运维·服务器
用户78937733908537 小时前
Docker 部署踩坑记录:从“构建失败”到“服务跑通”,以及为什么数据被清空了
python·docker
用户2367829801687 小时前
Linux find 命令深度解析:从递归遍历到性能优化的完整实现
linux