Skip to content

Instantly share code, notes, and snippets.

@squizr
Created December 18, 2016 23:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save squizr/23239c598179c4a944edbcdf19eab31e to your computer and use it in GitHub Desktop.
Save squizr/23239c598179c4a944edbcdf19eab31e to your computer and use it in GitHub Desktop.
version: '2'
services:
roach-ui:
image: cockroachdb/cockroach:beta-20161215
command: start --insecure
ports:
- 8080:8080
networks:
- roachnet
volumes:
- ./data/roach-ui:/cockroach/cockroach-data
roach-one:
image: cockroachdb/cockroach:beta-20161215
command: start --insecure --join=roach-ui
networks:
- roachnet
volumes:
- ./data/roach-one:/cockroach/cockroach-data
roach-two:
image: cockroachdb/cockroach:beta-20161215
command: start --insecure --join=roach-ui
networks:
- roachnet
volumes:
- ./data/roach-two:/cockroach/cockroach-data
roach-three:
image: cockroachdb/cockroach:beta-20161215
command: start --insecure --join=roach-ui
networks:
- roachnet
volumes:
- ./data/roach-three:/cockroach/cockroach-data
roach-four:
image: cockroachdb/cockroach:beta-20161215
command: start --insecure --join=roach-ui
networks:
- roachnet
volumes:
- ./data/roach-four:/cockroach/cockroach-data
networks:
roachnet:
@squizr
Copy link
Author

squizr commented Dec 19, 2016

Create a test cockroach cluster with docker-compose

@mailaneel
Copy link

Command to sql interface
docker-compose exec roach1 ./cockroach sql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment