rocket.chat v5.0版本部署和ios app使用

NO.1
官网地址

docker-compose安装文档
https://docs.rocket.chat/quick-start/deploying-rocket.chat/rapid-deployment-methods/docker-and-docker-compose

实际上官方的配置文件地址
https://raw.githubusercontent.com/RocketChat/Docker.Official.Image/master/compose.yml

NO.2
配置文件

按照官网的.env配置参数没有配置成功

不确定是docker版本太低还是别的问题,手动把官方的变量全部去掉

配置文件docker-compose.yml

本文端口为3000

version: "2"
volumes:
  mongodb_data: { driver: local }

services:
  rocketchat:
    image: registry.rocket.chat/rocketchat/rocket.chat:latest
    restart: on-failure
    labels:
      traefik.enable: "true"
    #   traefik.http.routers.rocketchat.rule: Host(`${http://rocketchat.xxx.com/}`)
      traefik.http.routers.rocketchat.tls: "true"
      traefik.http.routers.rocketchat.entrypoints: https
      traefik.http.routers.rocketchat.tls.certresolver: le
    environment:
      MONGO_URL: "mongodb://mongodb:27017/rocketchat?replicaSet=rs0"
      ROOT_URL: https://rocketchat.xxx.com
      PORT: 3000
      DEPLOY_METHOD: docker
    #   DEPLOY_PLATFORM: ${DEPLOY_PLATFORM}
    depends_on:
      - mongodb
    expose:
      - 3000
    ports:
      - 3000:3000

  mongodb:
    image: docker.io/bitnami/mongodb:4.4
    restart: on-failure
    volumes:
      - ./mongodb_data:/bitnami/mongodb
    environment:
      MONGODB_REPLICA_SET_MODE: primary
      MONGODB_REPLICA_SET_NAME: rs0
      MONGODB_PORT_NUMBER: 27017
      MONGODB_INITIAL_PRIMARY_HOST: mongodb
      MONGODB_INITIAL_PRIMARY_PORT_NUMBER: 27017
      MONGODB_ADVERTISED_HOSTNAME: mongodb
      MONGODB_ENABLE_JOURNAL: "true"
      ALLOW_EMPTY_PASSWORD: "yes"
NO.3
文件夹提权

映射的文件夹mongodb_data

如果docker-compose up启动报错,错误信息提示没有权限Permission denied

提权

chmod -R 777 mongodb_data
NO.4
下载app

国区app store也可以下载

虽然是英文版本,但是日常沟通足够了

在手机上没有看到预期的语音通话和视频会议,只有文字聊天

可以发送emoji,文件,图片,视频,语音

NO.5
Tips

安卓暂未尝试

这篇文章用来更新最新的安装,因为原来的安装方式已失效

旧文章《docker安装rockerChat设置聊天室》

END.