最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

docker安裝rockerChat設(shè)置聊天室的詳細(xì)步驟

 更新時間:2021年05月27日 14:52:58   作者:IT大師兄吖  
這篇文章主要介紹了docker安裝rockerChat設(shè)置聊天室的方法,通過設(shè)置文件獲取docker-compose文件,文中給大家介紹的非常詳細(xì),需要的朋友可以參考下

綜合文檔

github地址

https://github.com/RocketChat/Rocket.Chat

docker-compose文檔

https://docs.rocket.chat/installation/docker-containers/docker-compose

配置文件

獲取docker-compose文件

輸入命令

curl -L https://raw.githubusercontent.com/RocketChat/Rocket.Chat/develop/docker-compose.yml -o docker-compose.yml 

文件內(nèi)容為

version: '2'
services:
  rocketchat:
    image: rocketchat/rocket.chat:latest
    command: >
      bash -c
        "for i in `seq 1 30`; do
          node main.js &&
          s=$$? && break || s=$$?;
          echo \"Tried $$i times. Waiting 5 secs...\";
          sleep 5;
        done; (exit $$s)"
    restart: unless-stopped
    volumes:
      - ./uploads:/app/uploads
    environment:
      - PORT=3000
      - ROOT_URL=http://localhost:3000
      - MONGO_URL=mongodb://mongo:27017/rocketchat
      - MONGO_OPLOG_URL=mongodb://mongo:27017/local
      - MAIL_URL=smtp://smtp.email
#       - HTTP_PROXY=http://proxy.domain.com
#       - HTTPS_PROXY=http://proxy.domain.com
    depends_on:
      - mongo
    ports:
      - 3000:3000
    labels:
      - "traefik.backend=rocketchat"
      - "traefik.frontend.rule=Host: your.domain.tld"
  mongo:
    image: mongo:4.0
    restart: unless-stopped
    volumes:
     - ./data/db:/data/db
     #- ./data/dump:/dump
    command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1
    labels:
      - "traefik.enable=false"
  # this container's job is just run the command to initialize the replica set.
  # it will run the command and remove himself (it will not stay running)
  mongo-init-replica:
    image: mongo:4.0
    command: >
      bash -c
        "for i in `seq 1 30`; do
          mongo mongo/rocketchat --eval \"
            rs.initiate({
              _id: 'rs0',
              members: [ { _id: 0, host: 'localhost:27017' } ]})\" &&
          s=$$? && break || s=$$?;
          echo \"Tried $$i times. Waiting 5 secs...\";
          sleep 5;
        done; (exit $$s)"
    depends_on:
      - mongo
  # hubot, the popular chatbot (add the bot user first and change the password before starting this image)
  hubot:
    image: rocketchat/hubot-rocketchat:latest
    restart: unless-stopped
    environment:
      - ROCKETCHAT_URL=rocketchat:3000
      - ROCKETCHAT_ROOM=GENERAL
      - ROCKETCHAT_USER=bot
      - ROCKETCHAT_PASSWORD=botpassword
      - BOT_NAME=bot
  # you can add more scripts as you'd like here, they need to be installable by npm
      - EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-diagnostics
    depends_on:
      - rocketchat
    labels:
      - "traefik.enable=false"
    volumes:
      - ./scripts:/home/hubot/scripts
  # this is used to expose the hubot port for notifications on the host on port 3001, e.g. for hubot-jenkins-notifier
    ports:
      - 3001:8080
  #traefik:
  #  image: traefik:latest
  #  restart: unless-stopped
  #  command: >
  #    traefik
  #     --docker
  #     --acme=true
  #     --acme.domains='your.domain.tld'
  #     --acme.email='your@email.tld'
  #     --acme.entrypoint=https
  #     --acme.storagefile=acme.json
  #     --defaultentrypoints=http
  #     --defaultentrypoints=https
  #     --entryPoints='Name:http Address::80 Redirect.EntryPoint:https'
  #     --entryPoints='Name:https Address::443 TLS.Certificates:'
  #  ports:
  #    - 80:80
  #    - 443:443
  #  volumes:
  #    - /var/run/docker.sock:/var/run/docker.sock

修改文件

nano docker-compose.yml 

修改ports為自定義端口,默認(rèn)為3000,此處我修改為5001

img

啟動服務(wù)

輸入命令

docker-compose up -d 

訪問服務(wù)

使用http://IP:端口

默認(rèn)進(jìn)入安裝向?qū)?/p>

設(shè)置管理員信息

img

設(shè)置組織信息

img

設(shè)置服務(wù)器信息

img

注冊服務(wù)器

img

設(shè)置成功

img

進(jìn)入默認(rèn)公共聊天室

img

點(diǎn)擊左上角設(shè)置,創(chuàng)建用戶

為了測試兩個用戶之間的聯(lián)系

img

測試文字,emoji,圖片,語音,視頻,視頻會議

img

設(shè)置https

申請SSL證書,使用nginx代理之前的ip:端口即可

同時域名解析到對應(yīng)服務(wù)器ip

server {
        listen 443;
        # rocketchat
        server_name rocketchat.domain.com;
        ssl on;
        # root html;
        # index index.html index.htm;
        # SSL證書放在了同級目錄domain文件夾下面
        ssl_certificate cert/domain/rocketchat.domain.com_bundle.crt;
        ssl_certificate_key cert/domain/rocketchat.domain.com.key;
        ssl_session_timeout 5m;
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        location / {
            # 指向當(dāng)前的某個服務(wù)端口
            proxy_pass http://127.0.0.1:5001;
            #設(shè)置請求頭,并將頭信息傳遞給服務(wù)器端
            proxy_redirect off;
            proxy_set_header Host $host;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
        }
    }

Tips

一些如語音消息,視頻消息,文件傳送,APP應(yīng)用等,都需要前提是https協(xié)議訪問

建議及時配置Https,如果只是簡單嘗試使用,則使用ip:端口即可

img

以上就是docker安裝rockerChat設(shè)置聊天室的詳細(xì)內(nèi)容,更多關(guān)于docker rockerChat聊天室的資料請關(guān)注腳本之家其它相關(guān)文章!

相關(guān)文章

  • 使用Docker快速搭建Nginx?Web服務(wù)器

    使用Docker快速搭建Nginx?Web服務(wù)器

    在現(xiàn)代Web開發(fā)中,Nginx作為一款高性能的Web服務(wù)器和反向代理服務(wù)器,被廣泛應(yīng)用于各種項(xiàng)目中,本文主要介紹了如何利用Docker快速搭建Nginx?Web服務(wù)器,需要的可以參考下
    2024-03-03
  • docker國內(nèi)鏡像源配置的解決方案

    docker國內(nèi)鏡像源配置的解決方案

    文章介紹了如何配置Docker國內(nèi)鏡像源,以解決拉取鏡像時速度慢或無法下載的問題,常見的國內(nèi)鏡像源包括Docker國內(nèi)鏡像源、中科大源、網(wǎng)易源、百度源、騰訊源、阿里源等,配置文件位于/etc/docker/daemon.json,如果沒有該文件則需創(chuàng)建并修改
    2025-03-03
  • Docker目錄遷移的實(shí)現(xiàn)示例

    Docker目錄遷移的實(shí)現(xiàn)示例

    Docker默認(rèn)目錄比較小,容器日志過多就會導(dǎo)致無法運(yùn)行,本文主要介紹了Docker目錄遷移的實(shí)現(xiàn)示例,具有一定的參考價值,感興趣的可以了解一下
    2024-06-06
  • Docker 常用命令詳細(xì)整理

    Docker 常用命令詳細(xì)整理

    這篇文章主要介紹了Docker 常用命令詳細(xì)整理的相關(guān)資料,需要的朋友可以參考下
    2017-05-05
  • Docker搭建MySQL5.7主從復(fù)制的實(shí)現(xiàn)

    Docker搭建MySQL5.7主從復(fù)制的實(shí)現(xiàn)

    本文主要介紹了Docker搭建MySQL5.7主從復(fù)制的實(shí)現(xiàn),文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2022-06-06
  • docker-compose安裝RabbitMQ及插件操作步驟

    docker-compose安裝RabbitMQ及插件操作步驟

    這篇文章主要為大家介紹了docker-compose安裝RabbitMQ及插件操作步驟詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪
    2023-01-01
  • Docker常用命令詳解

    Docker常用命令詳解

    這篇文章主要介紹了Docker常用命令詳解,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2021-03-03
  • CentOS?7安裝Docker

    CentOS?7安裝Docker

    這篇文章介紹了CentOS?7安裝Docker的方法,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2021-12-12
  • 如何使用Docker Desktop部署GitLab

    如何使用Docker Desktop部署GitLab

    本文介紹了如何使用Docker Desktop在Windows系統(tǒng)上部署GitLab,包括環(huán)境準(zhǔn)備、安裝Docker、配置GitLab鏡像、容器配置等步驟,感興趣的朋友一起看看吧
    2025-03-03
  • 如何基于Dockerfile構(gòu)建tomcat鏡像

    如何基于Dockerfile構(gòu)建tomcat鏡像

    這篇文章主要介紹了如何基于Dockerfile構(gòu)建tomcat鏡像,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下
    2020-08-08

最新評論

乌兰县| 台南县| 新郑市| 浦江县| 鹤岗市| 竹溪县| 孟连| 临桂县| 藁城市| 柘荣县| 扎鲁特旗| 高要市| 绵阳市| 乌苏市| 巴林左旗| 珲春市| 綦江县| 东城区| 屏东县| 商都县| 阿巴嘎旗| 弋阳县| 武冈市| 红原县| 余江县| 安化县| 永春县| 富锦市| 舟曲县| 广安市| 全州县| 饶阳县| 海淀区| 遂川县| 富宁县| 广饶县| 霍城县| 新干县| 宾阳县| 朔州市| 福州市|