赞
踩
version: '3'
services:
cassandra:
image: cassandra:4.0.3
container_name: cassandra
ports:
- '7000:7000'
- '9042:9042'
volumes:
- ./data/cassandra:/bitnami
environment:
- CASSANDRA_SEEDS=cassandra
- CASSANDRA_PASSWORD_SEEDER=yes
- CASSANDRA_PASSWORD=cassandra
参照官方文档:https://cassandra.apache.org/_/quickstart.html
# GET CASSANDRA USING DOCKER
docker pull cassandra:latest
# START CASSANDRA
docker network create cassandra
docker run --rm -d --name cassandra --hostname cassandra --network cassandra cassandra
–
感谢阅读
END
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。