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 (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
devstorage, no authentication, one transactor.
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 infoMissing something? Follow the
install steps for macOS (Docker Desktop or Colima) and Linux.
Using Colima? Run colima start before each session.
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 openWhen ./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.
| What | URL |
|---|---|
| Datomic Console | http://localhost:8080/browse |
| Grafana dashboard | http://localhost:3000/d/datomic-overview |
| Prometheus | http://localhost:9090 |
- Follow the peer lab to start a Clojure REPL.
Use its example to create the
labdatabase, install a small schema, transact an entity, and query it. - Open Console and select the
labdatabase 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. - Watch the transactor in Grafana under Datomic → Transactor Metrics.
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.shSee TROUBLESHOOTING.md for installation steps, port conflicts, missing metrics or logs, and all configuration options.
