Created
June 22, 2018 07:33
-
-
Save kitz99/5439a0826634a28aded3b4b08effc44c to your computer and use it in GitHub Desktop.
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' | |
networks: | |
roachnet: | |
services: | |
master: | |
image: cockroachdb/cockroach:v2.0.3 | |
command: start --insecure | |
ports: | |
- 8080:8080 | |
- 26257:26257 | |
networks: | |
- roachnet | |
volumes: | |
- "${DATA_DIR}/roach:/mater/cockroach/cockroach-data" | |
slave-one: | |
image: cockroachdb/cockroach:v2.0.3 | |
command: start --insecure --join=master | |
networks: | |
- roachnet | |
volumes: | |
- "${DATA_DIR}/roach/slave1:/cockroach/cockroach-data" | |
slave-two: | |
image: cockroachdb/cockroach:v2.0.3 | |
command: start --insecure --join=master | |
networks: | |
- roachnet | |
volumes: | |
- "${DATA_DIR}/roach/slave2:/cockroach/cockroach-data" | |
slave-three: | |
image: cockroachdb/cockroach:v2.0.3 | |
command: start --insecure --join=master | |
networks: | |
- roachnet | |
volumes: | |
- "${DATA_DIR}/roach/slave3:/cockroach/cockroach-data" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment