Skip to content

Instantly share code, notes, and snippets.

@anishdcruz
Last active April 19, 2025 09:09
Show Gist options
  • Save anishdcruz/6238eb56a9b9c0cae765f47a3ad03af0 to your computer and use it in GitHub Desktop.
Save anishdcruz/6238eb56a9b9c0cae765f47a3ad03af0 to your computer and use it in GitHub Desktop.
YugabyteDB local cluster with docker compose
# Source https://docs.yugabyte.com/preview/tutorials/quick-start/docker/
services:
yugabytedb:
image: yugabytedb/yugabyte:latest
container_name: yb-local-cluster
ports:
- "7001:7001"
- "9000:9000"
- "9042:9042"
- "5433:5433"
- "15433:15433" # YugabyteDB UI
volumes:
- ./yb_data:/root/var/data
command:
- "bin/yugabyted"
- "start"
- "--background=false"
networks:
- yb_local_net
networks:
yb_local_net:
name: yb_local_net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment