綜合文檔
創(chuàng)新互聯(lián)專注于企業(yè)成都全網(wǎng)營(yíng)銷推廣、網(wǎng)站重做改版、撫順網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、H5頁面制作、商城網(wǎng)站建設(shè)、集團(tuán)公司官網(wǎng)建設(shè)、外貿(mào)網(wǎng)站制作、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為撫順等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。
github地址
https://github.com/RocketChat/Rocket.Chat
docker-compose文檔
https://docs.rocket.chat/installation/docker-containers/docker-compose配置文件
獲取docker-compose文件
輸入命令
curl -L -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啟動(dòng)服務(wù)
輸入命令
docker-compose up -d訪問服務(wù)
使用http://IP:端口
默認(rèn)進(jìn)入安裝向?qū)?/p>
設(shè)置管理員信息
設(shè)置組織信息
設(shè)置服務(wù)器信息
注冊(cè)服務(wù)器
設(shè)置成功
進(jìn)入默認(rèn)公共聊天室
點(diǎn)擊左上角設(shè)置,創(chuàng)建用戶
為了測(cè)試兩個(gè)用戶之間的聯(lián)系
測(cè)試文字,emoji,圖片,語音,視頻,視頻會(huì)議設(shè)置https
申請(qǐng)SSL證書,使用nginx代理之前的ip:端口即可
同時(shí)域名解析到對(duì)應(yīng)服務(wù)器ipserver { 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:端口即可
以上就是docker安裝rockerChat設(shè)置聊天室的詳細(xì)內(nèi)容,更多關(guān)于docker rockerChat聊天室的資料請(qǐng)關(guān)注腳本之家其它相關(guān)文章!
當(dāng)前題目:docker安裝rockerChat設(shè)置聊天室的詳細(xì)步驟
網(wǎng)站路徑:http://jinyejixie.com/article30/chojpo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供ChatGPT、網(wǎng)站設(shè)計(jì)公司、軟件開發(fā)、網(wǎng)站收錄、定制網(wǎng)站、外貿(mào)網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容