Created
June 15, 2016 22:32
-
-
Save jbrisbin/89007bd45eec0f4c1855777e955c883f to your computer and use it in GitHub Desktop.
Riak TS cluster creation with Docker Compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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