Skip to content

Instantly share code, notes, and snippets.

@kitz99
Created June 22, 2018 07:33
Show Gist options
  • Save kitz99/5439a0826634a28aded3b4b08effc44c to your computer and use it in GitHub Desktop.
Save kitz99/5439a0826634a28aded3b4b08effc44c to your computer and use it in GitHub Desktop.
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