Advertisement
Guest User

Untitled

a guest
Dec 9th, 2021
13
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2.4'
  2.  
  3. services:
  4.  
  5. node2:
  6. image: cassandra
  7. container_name: cassandra_node2
  8. hostname: node2
  9. networks:
  10. - database
  11. healthcheck:
  12. test: ["CMD", "cqlsh", "-e", "describe keyspaces" ]
  13. interval: 5s
  14. timeout: 5s
  15. retries: 60
  16. ports:
  17. - "7199:7199" # JMX
  18. - "7000:7000" # Cluster Communication
  19. - "7001:7001" # Cluster Communication (SSL)
  20. - "9042:9042" # Native binary CQL port
  21. - "9160:9160" # Thrift Clients
  22. security_opt:
  23. - seccomp:unconfined
  24. environment: &environment
  25. CASSANDRA_SEEDS: "192.168.2.68"
  26. CASSANDRA_CLUSTER_NAME: GECAD_Cluster
  27. CASSANDRA_DC: datacenter1
  28. CASSANDRA_ENDPOINT_SNITCH: GossipingPropertyFileSnitch
  29. CASSANDRA_NUM_TOKENS: 128
  30.  
  31. networks:
  32. database:
  33. driver: bridge
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement