Docker Compose
You can also use Dria with Docker Compose. To download the compose configurations you can do:
curl -o compose.yaml -L https://raw.githubusercontent.com/firstbatchxyz/dria-docker/master/compose.yaml
Afterwards, you can start with:
CONTRACT="contract-id" docker compose up
Dria CLI has much more capabilities & better DevEx compared to using the compose; in fact, the compose file is only equivalent to a dria pull
command, which will:
- Download the bundled knowledge data from Arweave
- Unbundle & store them on disk
- Serve the stored HNSW index
Due to how Docker compose works, we also make use of a wait-for image that waits for HollowDB downloads to finish before HNSW is started, this image is hosted at here.
The CLI does not need this image, but instead does the “waiting” logic in JS.