networks: cluster_subnet: name: cluster_subnet driver: bridge ipam: driver: default config: - subnet: 172.16.1.0/24 gateway: 172.16.1.1 services: cassandra-one: image: &image shotover/cassandra-test:4.0.6-r1 networks: cluster_subnet: ipv4_address: 172.16.1.2 environment: &environment MAX_HEAP_SIZE: "400M" MIN_HEAP_SIZE: "400M" HEAP_NEWSIZE: "48M" volumes: # Using volume instead of tmpfs adds 3 seconds to the runtime of the cassandra standard_test_suite but allows running tests that restart nodes &volumes - type: volume target: /var/lib/cassandra