Advertisement
Guest User

Untitled

a guest
Dec 9th, 2021
25
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2.4'
  2.  
  3. services:
  4.  
  5. node1:
  6. image: cassandra
  7. container_name: cassandra_node1
  8. hostname: node1
  9. healthcheck:
  10. test: ["CMD", "cqlsh", "-e", "describe keyspaces" ]
  11. interval: 5s
  12. timeout: 5s
  13. retries: 60
  14. ports:
  15. - "7199:7199" # JMX
  16. - "7000:7000" # Cluster Communication
  17. - "7001:7001" # Cluster Communication (SSL)
  18. - "9042:9042" # Expose native binary CQL port for your apps
  19. - "9160:9160" # Thrift Clients
  20. networks:
  21. - database
  22. security_opt:
  23. - seccomp:unconfined
  24. environment: &environment # Declare and save environments variables into "environment"
  25. CASSANDRA_SEEDS: "node1" # The first two nodes will be seeds
  26. CASSANDRA_CLUSTER_NAME: GECAD_Cluster
  27. CASSANDRA_DC: datacenter1
  28. CASSANDRA_ENDPOINT_SNITCH: GossipingPropertyFileSnitch
  29. CASSANDRA_NUM_TOKENS: 128
  30.  
  31. building_storage_new:
  32. container_name: building_storage_new
  33. hostname: building_storage_new
  34. restart: on-failure
  35. ports:
  36. - 4000:4000
  37. expose:
  38. - "4000"
  39. build:
  40. context: ./
  41. network: host
  42. dockerfile: Dockerfile
  43. depends_on:
  44. node1: # start backend only after node1 is healthy
  45. condition: service_healthy
  46. networks:
  47. - database
  48. environment:
  49. NODE_ENV: "production"
  50. CASSANDRA_DATACENTER: "datacenter1"
  51. CASSANDRA_CONNECTION_POINTS: "node1:9042, 192.168.2.36:9042"
  52. CASSANDRA_USER: "cassandra"
  53. CASSANDRA_PASSWORD: "cassandra"
  54. CASSANDRA_KEYSPACE: "gid_n"
  55. SMTP_SENDER: "no-reply@gecad.isep.ipp.pt"
  56.  
  57. networks:
  58. database:
  59. driver: bridge
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement