Skip to content

Instantly share code, notes, and snippets.

@jbrisbin
Created June 15, 2016 22:32
Show Gist options
  • Save jbrisbin/89007bd45eec0f4c1855777e955c883f to your computer and use it in GitHub Desktop.
Save jbrisbin/89007bd45eec0f4c1855777e955c883f to your computer and use it in GitHub Desktop.
Riak TS cluster creation with Docker Compose
version: "2"
services:
primary:
hostname: primary
image: basho/riak-ts
ports:
- "8087"
- "8098"
secondary:
image: basho/riak-ts
ports:
- "8087"
- "8098"
links:
- primary
depends_on:
- primary
environment:
- CLUSTER1=primary
docker-compose scale primary=1 secondary=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment