aboutsummaryrefslogtreecommitdiff
path: root/docker/examples/docker-compose-cluster/README.md
blob: 0a50e3b150d1330f53240d071e7a082f34f19475 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Ejabberd cluster with docker compose

This example uses [dnsdocker](https://github.com/tonistiigi/dnsdock) to discover other nodes and setup a multi-master cluster.

Build the ejabberd cluster image:

```bash
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:

```bash
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:

```bash
docker-compose scale ejabberd=4
```