From b9b0cabdcf9891f357eab6c1aeac9279f8700d6f Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 24 Dec 2023 22:26:04 -0500 Subject: [PATCH] feat: add melli support in docker --- app/lib/search.ts | 2 +- docker-compose.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/lib/search.ts b/app/lib/search.ts index 1d2ca4d..78b3fc7 100644 --- a/app/lib/search.ts +++ b/app/lib/search.ts @@ -1,5 +1,5 @@ import { MeiliSearch } from "meilisearch"; -const meili = new MeiliSearch({ host: "http://127.0.0.1:7700" }); +const meili = new MeiliSearch({ host: "http://melli:7700" }); export default meili; diff --git a/docker-compose.yml b/docker-compose.yml index 5a30c79..325ab18 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,3 +11,7 @@ services: command: ["npm", "run", "bridge"] volumes: - ./data/app.db:/app/prisma/dev.db + melli: + image: getmeili/meilisearch:v1.5 + volumes: + - ./melli_data:/meili_data