Skip to content

Instantly share code, notes, and snippets.

@aliahmadcse
Created June 26, 2024 10:23
Show Gist options
  • Save aliahmadcse/619eb7dc04e24d00ecb0662918784e29 to your computer and use it in GitHub Desktop.
Save aliahmadcse/619eb7dc04e24d00ecb0662918784e29 to your computer and use it in GitHub Desktop.
setting-up-cassandra-locally-on-docker

--hostname cassandra --network cassandra

Starting the docker container

``

version: '3.8'
services:
cassandra:
image: cassandra:latest
container_name: cassandra-essentials
hostname: cassandra
networks:
- cassandra_network
ports:
- "9042:9042"
volumes:
- cassandra_data:/var/lib/cassandra
networks:
cassandra_network:
driver: bridge
volumes:
cassandra_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment