Skip to content

Instantly share code, notes, and snippets.

@txthai
Last active February 25, 2017 21:59
Show Gist options
  • Save txthai/9e00282c060bfe0451efc9acf604cfd4 to your computer and use it in GitHub Desktop.
Save txthai/9e00282c060bfe0451efc9acf604cfd4 to your computer and use it in GitHub Desktop.
#!/bin/bash
CSC1="10.90.209.155"
CSC2="10.90.209.196"
CSC3="10.90.209.199"
CSC_HOST=$CSC3
CSC_SEEDS="$CSC1,$CSC2"
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