Created
May 8, 2018 06:31
-
-
Save Extarys/e7c5ef2e6afc00f59fb136e7cbc68d10 to your computer and use it in GitHub Desktop.
docker-compose.yml
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: '3' | |
services: | |
cassandra-1: | |
hostname: cassandra-1 | |
image: cassandra:latest | |
command: /bin/bash -c "sleep 1 && echo ' -- Pausing to let system catch up ... -->' && /docker-entrypoint.sh cassandra -f" | |
environment: | |
- CASSANDRA_BROADCAST_ADDRESS=cassandra-1 | |
- MAX_HEAP_SIZE=4096M | |
- HEAP_NEWSIZE=4096M | |
- CASSANDRA_DC=DC1 | |
expose: | |
- 7000 | |
- 7001 | |
- 7199 | |
- 9042 | |
- 9160 | |
volumes: # uncomment if you desire mounts, also uncomment cluster.sh | |
- ./data/cassandra-1:/var/lib/cassandra:rw | |
cassandra-2: | |
hostname: cassandra-2 | |
image: cassandra:latest | |
command: /bin/bash -c "sleep 30 && echo ' -- Pausing to let system catch up ... -->' && /docker-entrypoint.sh cassandra -f" | |
environment: | |
- CASSANDRA_SEEDS=cassandra-1 | |
- CASSANDRA_BROADCAST_ADDRESS=cassandra-2 | |
- MAX_HEAP_SIZE=4096M | |
- HEAP_NEWSIZE=4096M | |
- CASSANDRA_DC=DC1 | |
links: | |
- cassandra-1 | |
expose: | |
- 7000 | |
- 7001 | |
- 7199 | |
- 9042 | |
- 9160 | |
volumes: # uncomment if you desire mounts, also uncomment cluster.sh | |
- /media/DarkHawk/srv/Databases/Cassandra-Docker/data/cassandra-2:/var/lib/cassandra:rw | |
cassandra-3: | |
hostname: cassandra-3 | |
image: cassandra:latest | |
command: /bin/bash -c "sleep 30 && echo ' -- Pausing to let system catch up ... -->' && /docker-entrypoint.sh cassandra -f" | |
environment: | |
- CASSANDRA_SEEDS=cassandra-1 | |
- CASSANDRA_BROADCAST_ADDRESS=cassandra-3 | |
- MAX_HEAP_SIZE=4096M | |
- HEAP_NEWSIZE=4096M | |
- CASSANDRA_DC=DC1 | |
links: | |
- cassandra-1 | |
- cassandra-2 | |
expose: | |
- 7000 | |
- 7001 | |
- 7199 | |
- 9042 | |
- 9160 | |
volumes: # uncomment if you desire mounts, also uncomment cluster.sh | |
- ./data/cassandra-3:/var/lib/cassandra:rw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment