Created
December 18, 2016 23:58
-
-
Save squizr/23239c598179c4a944edbcdf19eab31e to your computer and use it in GitHub Desktop.
This file contains hidden or 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: | |
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: |
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
Create a test cockroach cluster with docker-compose