My docker-compose file as below,
cassandra-db: container_name: cassandra-db image: cassandra:4.0-beta1 ports: - "9042:9042" restar