欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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

 更新時(shí)間: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

啟動(dòng)服務(wù)

輸入命令

docker-compose up -d 

訪問服務(wù)

使用http://IP:端口

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

設(shè)置管理員信息

img

設(shè)置組織信息

img

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

img

注冊(cè)服務(wù)器

img

設(shè)置成功

img

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

img

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

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

img

測(cè)試文字,emoji,圖片,語音,視頻,視頻會(huì)議

img

設(shè)置https

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

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

server {
        listen 443;
        # rocketchat
        server_name rocketchat.domain.com;
        ssl on;
        # root html;
        # index index.html index.htm;
        # SSL證書放在了同級(jí)目錄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)前的某個(gè)服務(wù)端口
            proxy_pass http://127.0.0.1:5001;
            #設(shè)置請(qǐng)求頭,并將頭信息傳遞給服務(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é)議訪問

建議及時(shí)配置Https,如果只是簡(jiǎn)單嘗試使用,則使用ip:端口即可

img

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

相關(guān)文章

  • docker的overlay2中存的都是什么及如何清理/var/lib/docker/overlay2

    docker的overlay2中存的都是什么及如何清理/var/lib/docker/overlay2

    docke roverlay2是Docker中的存儲(chǔ)驅(qū)動(dòng)之一,用于管理鏡像和容器層的數(shù)據(jù),這篇文章主要給大家介紹了關(guān)于docker的overlay2中存的都是什么及如何清理/var/lib/docker/overlay2的相關(guān)資料,需要的朋友可以參考下
    2024-04-04
  • Docker數(shù)據(jù)存儲(chǔ)之Bind mounts詳解

    Docker數(shù)據(jù)存儲(chǔ)之Bind mounts詳解

    今天小編就為大家分享一篇關(guān)于Docker數(shù)據(jù)存儲(chǔ)之Bind mounts詳解,小編覺得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編來看看吧
    2019-02-02
  • docker.service啟動(dòng)報(bào)錯(cuò)的一次排查詳解

    docker.service啟動(dòng)報(bào)錯(cuò)的一次排查詳解

    這篇文章主要介紹了docker.service啟動(dòng)報(bào)錯(cuò)的一次排查詳解,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過來看看吧
    2020-11-11
  • docker部署mysql和nginx服務(wù)的示例詳解

    docker部署mysql和nginx服務(wù)的示例詳解

    這篇文章主要為大家詳細(xì)介紹了docker部署mysql和nginx服務(wù)的相關(guān)知識(shí),文中的示例代碼簡(jiǎn)潔易懂,感興趣的小伙伴可以跟隨小編一起學(xué)習(xí)一下
    2024-04-04
  • docker?compose運(yùn)行微服務(wù)項(xiàng)目的方法

    docker?compose運(yùn)行微服務(wù)項(xiàng)目的方法

    這篇文章主要介紹了docker?compose運(yùn)行微服務(wù)項(xiàng)目?,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
    2022-08-08
  • Docker拉取鏡像的完整步驟

    Docker拉取鏡像的完整步驟

    這篇文章主要給大家介紹了關(guān)于Docker拉取鏡像的完整步驟,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家學(xué)習(xí)或者使用Docker具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-09-09
  • Docker 清理環(huán)境操作

    Docker 清理環(huán)境操作

    這篇文章主要介紹了Docker 清理環(huán)境操作,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過來看看吧
    2020-11-11
  • docker 多個(gè)-e參數(shù)的具體使用

    docker 多個(gè)-e參數(shù)的具體使用

    在使用Docker鏡像運(yùn)行容器時(shí),我們可以通過使用-e參數(shù)來設(shè)置環(huán)境變量,有時(shí)我們需要設(shè)置多個(gè)環(huán)境變量,這就涉及到如何實(shí)現(xiàn)多個(gè)-e參數(shù)的問題,本文就來詳細(xì)的介紹一下
    2024-01-01
  • 使用Docker部署Python Flask應(yīng)用的完整教程

    使用Docker部署Python Flask應(yīng)用的完整教程

    Docker是一種開源的容器化平臺(tái),可以將應(yīng)用程序及其依賴項(xiàng)打包成一個(gè)獨(dú)立的容器,實(shí)現(xiàn)快速部署和跨平臺(tái)運(yùn)行,本文將詳細(xì)介紹如何使用Docker來部署Python Flask應(yīng)用程序,幫助開發(fā)者更高效地構(gòu)建和部署應(yīng)用,需要的朋友可以參考下
    2024-06-06
  • Docker部署Mysql,.Net6,Sqlserver等容器

    Docker部署Mysql,.Net6,Sqlserver等容器

    這篇文章介紹了Docker部署Mysql,.Net6,Sqlserver等容器的方法,對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2021-12-12

最新評(píng)論