Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2.4'
- services:
- node1:
- image: cassandra
- container_name: cassandra_node1
- hostname: node1
- 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" # Expose native binary CQL port for your apps
- - "9160:9160" # Thrift Clients
- networks:
- - database
- security_opt:
- - seccomp:unconfined
- environment: &environment # Declare and save environments variables into "environment"
- CASSANDRA_SEEDS: "node1" # The first two nodes will be seeds
- CASSANDRA_CLUSTER_NAME: GECAD_Cluster
- CASSANDRA_DC: datacenter1
- CASSANDRA_ENDPOINT_SNITCH: GossipingPropertyFileSnitch
- CASSANDRA_NUM_TOKENS: 128
- building_storage_new:
- container_name: building_storage_new
- hostname: building_storage_new
- restart: on-failure
- ports:
- - 4000:4000
- expose:
- - "4000"
- build:
- context: ./
- network: host
- dockerfile: Dockerfile
- depends_on:
- node1: # start backend only after node1 is healthy
- condition: service_healthy
- networks:
- - database
- environment:
- NODE_ENV: "production"
- CASSANDRA_DATACENTER: "datacenter1"
- CASSANDRA_CONNECTION_POINTS: "node1:9042, 192.168.2.36:9042"
- CASSANDRA_USER: "cassandra"
- CASSANDRA_PASSWORD: "cassandra"
- CASSANDRA_KEYSPACE: "gid_n"
- SMTP_SENDER: "no-reply@gecad.isep.ipp.pt"
- networks:
- database:
- driver: bridge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement