Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2.4'
- services:
- node2:
- image: cassandra
- container_name: cassandra_node2
- hostname: node2
- networks:
- - database
- healthcheck:
- test: ["CMD", "cqlsh", "-e", "describe keyspaces" ]
- interval: 5s
- timeout: 5s
- retries: 60
- ports:
- - "7199:7199" # JMX
- - "7000:7000" # Cluster Communication
- - "7001:7001" # Cluster Communication (SSL)
- - "9042:9042" # Native binary CQL port
- - "9160:9160" # Thrift Clients
- security_opt:
- - seccomp:unconfined
- environment: &environment
- CASSANDRA_SEEDS: "192.168.2.68"
- CASSANDRA_CLUSTER_NAME: GECAD_Cluster
- CASSANDRA_DC: datacenter1
- CASSANDRA_ENDPOINT_SNITCH: GossipingPropertyFileSnitch
- CASSANDRA_NUM_TOKENS: 128
- networks:
- database:
- driver: bridge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement