1. docker-compose ```yaml version: ‘3’

    services: cassandra: image: cassandra:4.0.3 container_name: cassandra ports:

    1. - '7000:7000'
    2. - '9042:9042'
    3. volumes:
    4. - ./data/cassandra:/bitnami
    5. environment:
    6. - CASSANDRA_SEEDS=cassandra
    7. - CASSANDRA_PASSWORD_SEEDER=yes
    8. - CASSANDRA_PASSWORD=cassandra
    1. 2. docker
    2. 参照官方文档:[https://cassandra.apache.org/_/quickstart.html](https://cassandra.apache.org/_/quickstart.html)
    3. ```shell
    4. # GET CASSANDRA USING DOCKER
    5. docker pull cassandra:latest
    6. # START CASSANDRA
    7. docker network create cassandra
    8. docker run --rm -d --name cassandra --hostname cassandra --network cassandra cassandra