-
-
Save purwandi/227c8f2db9007f1d93c9aee52940362c to your computer and use it in GitHub Desktop.
CockroachDB - Docker Compose Manifest. Spins up a simple 3 node CockroachDB cluster.
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: "3" | |
services: | |
roach1: | |
container_name: roach1 | |
image: cockroachdb/cockroach:v1.1.3 | |
command: start --insecure | |
ports: | |
- "26257:26257" | |
- "8080:8080" | |
volumes: | |
- ./cockroach-data/roach1:/cockroach/cockroach-data | |
networks: | |
roachnet: | |
aliases: | |
- roach1 | |
roach2: | |
container_name: roach2 | |
image: cockroachdb/cockroach:v1.1.3 | |
command: start --insecure --join=roach1 | |
volumes: | |
- ./cockroach-data/roach2:/cockroach/cockroach-data | |
depends_on: | |
- roach1 | |
networks: | |
roachnet: | |
aliases: | |
- roach2 | |
roach3: | |
container_name: roach3 | |
image: cockroachdb/cockroach:v1.1.3 | |
command: start --insecure --join=roach1 | |
volumes: | |
- ./cockroach-data/roach3:/cockroach/cockroach-data | |
depends_on: | |
- roach1 | |
networks: | |
roachnet: | |
aliases: | |
- roach3 | |
networks: | |
roachnet: | |
driver: bridge⏎ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment