You can test or use Twake in our SaaS : chat.twake.app
If you don't have docker in your server, you have to install it.
sudo apt-get updatesudo apt-get -y install apt-transport-https ca-certificates curl gnupg2 software-properties-commoncurl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"sudo apt-get updatesudo apt-get -y install docker-ce --allow-unauthenticated
Twake use docker-compose. If it is not installed in your server :
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-composesudo chmod +x /usr/local/bin/docker-composedocker-compose --version
You can install Twake on your server with this command
git clone https://github.com/TwakeApp/Twake.gitcd Twake/twake./start.sh
git clone https://github.com/TwakeApp/Twake.gitcd Twake/twakecp -n docker-compose.yml.dist.onpremise docker-compose.ymlcp -nR default-configuration/ configuration/docker-compose pulldocker-compose up -d scylladbsleep 5m #Wait scylladb to startupdocker-compose up -d php rabbitmqsleep 10m #Wait php to create tables in scylladbdocker-compose up -d
To run ElasticSearch (optional, but enabled by default in the Twake docker-compose) you must increase the max_map_count of your system: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_set_vm_max_map_count_to_at_least_262144
To fix an other bug with ElasticSearch container, you must also run this command:
chmod 777 ./docker-data/es_twake(create the folder if it doesn't exists in your docker-compose.yml folder)
Twake will be running on port 8000 🎉
docker-compose stopdocker-compose rm #Remove images (not volumes so your data is safe)docker-compose pull #Get new imagesdocker-compose up -ddocker-compose exec nginx yarn build #If you have custom frontend configuration
Currently you'll need at least a 2 cpu + 4 gb of ram machine for 20-50 users depending on their usage and with ElasticSearch disabled.
If you enable ElasticSearch, use two machines, or limit the cpu/ram dedicated to it and use a larger machine (at least 2gb of ram and 1 cpu dedicated to ES for 20-50 users).
If you need to deploy Twake for more users, you can use only one big machine up to 500 users (Will need something like 12 cpu and 32go of ram), then you'll need to use multiple nodes.
Now if you want to scale with Twake and support thousand of users, click on the link below :