Skip to content

Commit

Permalink
docs/docker-hub.md: Docker Compose cluster example
Browse files Browse the repository at this point in the history
This adds a simple example of launching a 3-node Scylla cluster with
Docker Compose.

Signed-off-by: Tzach Livyatan <[email protected]>
[ penberg: minor edits ]
Message-Id: <[email protected]>
  • Loading branch information
tzach authored and penberg committed Feb 19, 2019
1 parent e37e095 commit 622361b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/docker-hub.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,35 @@ cqlsh>
$ docker run --name some-scylla2 --hostname some-scylla2 -d scylladb/scylla --seeds="$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' some-scylla)"
```

### Make a cluster with Docker Compose

First, create a `docker-compose.yml` file with the following contents:

```yaml
version: '3'

services:
some-scylla:
image: scylladb/scylla
container_name: some-scylla

some-scylla2:
image: scylladb/scylla
container_name: some-scylla2
command: --seeds=some-scylla

some-scylla3:
image: scylladb/scylla
container_name: some-scylla3
command: --seeds=some-scylla
```
Then, launch the 3-node cluster as follows:
```
docker-compose up -d
```

## Check `scylla` logs

```console
Expand Down

0 comments on commit 622361b

Please sign in to comment.