Skip to content

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Datomic Lab

A local Datomic Pro playground for learning: a transactor, the Datomic Console, an optional peer REPL, and dashboards (Grafana, Prometheus, Loki) to watch it all work.

Datomic Lab architecture

Datomic (transactor and Console) runs as Java processes on your machine. Only the observability stack runs in Docker.

This is a learning lab, not a production setup: local dev storage, no authentication, one transactor.

Before you start

You need macOS or Linux with:

  • Java 17, 21, or 25
  • Clojure CLI
  • Docker with Compose v2 (Docker Desktop, Docker Engine, or Colima)
  • curl, unzip, lsof (usually already installed)

Check that everything answers:

java -version
clojure -Sdescribe
docker compose version
docker info

Missing something? Follow the install steps for macOS (Docker Desktop or Colima) and Linux. Using Colima? Run colima start before each session.

Quick start

Clone the repository somewhere under your home directory (Colima only shares your home folder with its VM), then from the repository root:

./build.sh    # first time only: downloads Datomic Pro and builds the lab
./start.sh    # starts everything; keep this terminal open

When ./build.sh asks Install Datomic Pro … in …/datomic-pro?, press Enter. The first build downloads about 300 MB; the first start downloads the Docker images.

./start.sh is ready when it prints Keep this terminal open. The first metrics can take about a minute to appear.

Open the lab

What URL
Datomic Console http://localhost:8080/browse
Grafana dashboard http://localhost:3000/d/datomic-overview
Prometheus http://localhost:9090

Try it

  1. Follow the peer lab to start a Clojure REPL. Use its example to create the lab database, install a small schema, transact an entity, and query it.
  2. Open Console and select the lab database to explore its schema, query entities, and inspect transaction history. Console is for browsing and querying; database creation and schema/data transactions use the Datomic API through the peer REPL.
  3. Watch the transactor in Grafana under Datomic → Transactor Metrics.

Stop

Press Ctrl+C in the ./start.sh terminal. Your databases and dashboards are kept; run ./start.sh again next time.

If the terminal was closed and something is still running:

./stop.sh

Something went wrong?

See TROUBLESHOOTING.md for installation steps, port conflicts, missing metrics or logs, and all configuration options.

Learn more

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages