Usage:
-
Create a .env
ROCKETCHAT_VERSION=latest PORT=3000 ROOT_URL=http://localhost:3000 MONGO_URL=mongodb://urlforthedatabase:27017/rocketchat MONGO_OPLOG_URL=mongodb://urlforthedatabase:27017/local INSTANCE_IP=<ip of the local instance> INSTANCE_IP_ALPHA=<ip of the first instance> INSTANCE_IP_BRAVO=<ip of the other instance>
-
Replace the keys with required values
-
Run rocket-chat server
docker-compose config docker-compose up -d
Developing locally:
cp sample.env .env
docker-compose up -d
This manages everything inside Docker (via docker-compose.dev.yml
) including setting up a Mongo container and replica set.