Last active
February 25, 2017 21:58
-
-
Save txthai/db1f2bbd1f228937d82fe4d2f00cbe56 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
#!/bin/bash | |
CSC1="10.90.209.155" | |
CSC2="10.90.209.196" | |
CSC3="10.90.209.199" | |
CSC_HOST=$CSC2 | |
CSC_SEEDS="$CSC1,$CSC3" | |
sudo docker run -d --network=isolated_nw \ | |
-v /ds/cassandra/conf:/host \ | |
-v /ds/cassandra/csc:/var/lib/cassandra \ | |
-e CASSANDRA_BROADCAST_ADDRESS=$CSC_HOST \ | |
-e CASSANDRA_SEEDS=$CSC_SEEDS \ | |
-p $CSC_HOST:7000:7000 \ | |
-p $CSC_HOST:7001:7001 \ | |
-p $CSC_HOST:7199:7199 \ | |
-p $CSC_HOST:9042:9042 \ | |
-p $CSC_HOST:9160:9160 \ | |
--name csc \ | |
cassandra:3.9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment