25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00
xmpp.chapril.org-ejabberd/docker/examples/docker-compose-cluster
2017-09-25 17:48:57 +02:00
..
scripts Sync containers from rroemhild and add instructions in README (#1655) 2017-09-25 17:48:57 +02:00
docker-compose.yml Sync containers from rroemhild and add instructions in README (#1655) 2017-09-25 17:48:57 +02:00
Dockerfile Sync containers from rroemhild and add instructions in README (#1655) 2017-09-25 17:48:57 +02:00
README.md Sync containers from rroemhild and add instructions in README (#1655) 2017-09-25 17:48:57 +02:00

Ejabberd cluster with docker compose

This example uses dnsdocker to discover other nodes and setup a multi-master cluster.

Build the ejabberd cluster image:

git clone https://github.com/rroemhild/docker-ejabberd.git
cd docker-ejabberd/examples/docker-compose-cluster
docker-compose build

Start dnsdocker and the first ejabberd node:

docker-compose up -d

Wait until the first ejabberd node is up and running docker-compose logs ejabberd, then add some ejabberd nodes to the cluster:

docker-compose scale ejabberd=4