fix (commented out) rocketchat to work with latest versions

This commit is contained in:
ralf 2024-07-09 09:29:11 +02:00
parent 173ea7274d
commit 96709e1088
2 changed files with 16 additions and 6 deletions

View File

@ -227,7 +227,7 @@ services:
# Rocket.Chat server # Rocket.Chat server
#rocketchat: #rocketchat:
# image: quay.io/egroupware/rocket.chat:latest # image: quay.io/egroupware/rocket.chat:stable6
# command: > # command: >
# sh -c # sh -c
# "while true; do # "while true; do
@ -248,8 +248,8 @@ services:
# # IMPORTANT: change ROOT_URL to your actual url eg. https://domain.com/rocketchat # # IMPORTANT: change ROOT_URL to your actual url eg. https://domain.com/rocketchat
# - ROOT_URL=http://localhost/rocketchat # - ROOT_URL=http://localhost/rocketchat
# - PORT=3000 # - PORT=3000
# - MONGO_URL=mongodb://mongo:27017/rocketchat # - MONGO_URL=mongodb://mongo:27017/rocketchat?replicaSet=rs0&directConnection=true
# - MONGO_OPLOG_URL=mongodb://mongo:27017/local # - MONGO_OPLOG_URL=mongodb://mongo:27017/local?replicaSet=rs0&directConnection=true
# # - HTTP_PROXY=http://proxy.domain.com # # - HTTP_PROXY=http://proxy.domain.com
# # - HTTPS_PROXY=http://proxy.domain.com # # - HTTPS_PROXY=http://proxy.domain.com
# depends_on: # depends_on:
@ -267,13 +267,23 @@ services:
# volumes: # volumes:
# - mongo:/data/db # - mongo:/data/db
# - $PWD/data/default/rocketchat/dump:/dump # - $PWD/data/default/rocketchat/dump:/dump
# command: mongod --oplogSize 128 --replSet rs0 # command: mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger
# container_name: rocketchat-mongo # container_name: rocketchat-mongo
# this container's job is just run the command to initialize the replica set. # 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) # it will run the command and remove himself (it will not stay running)
#mongo-init-replica: #mongo-init-replica:
# image: mongo:5.0 # image: mongo:5.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)"' # command: >
# bash -c
# "for (( ; ; )); do
# mongo mongo/rocketchat --eval \"
# rs.initiate({
# _id: 'rs0',
# members: [ { _id: 0, host: 'localhost:27017' } ]})\" &&
# s=$$? && break || s=$$?;
# echo \"Could not reach MongoDB. Waiting 5 secs ...\";
# sleep 5;
# done; (exit $$s)"
# depends_on: # depends_on:
# - mongo # - mongo

View File

@ -163,7 +163,7 @@ server {
} }
# proxy into rocketchat container # proxy into rocketchat container
#location /rocketchat { #location / {
# proxy_pass http://rocketchat:3000; # proxy_pass http://rocketchat:3000;
# proxy_set_header Upgrade $http_upgrade; # proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade"; # proxy_set_header Connection "upgrade";