diff --git a/README.md b/README.md index 13e33f1..a9488ae 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,6 @@ be added to any website or application. This DDEV add on adds Meilisearch as a local service. -Screenshot 2024-01-27 at 11 15 42 AM - ## Installation With DDEV installed, run this command: @@ -28,18 +26,14 @@ adding to `.ddev/.env` in your project, and adding the `MEILI_MASTER_KEY` variab ## Admin Dashboard -This DDEV addon also includes the admin dashboard by Ricco Xie: - -https://github.com/riccox/meilisearch-ui - -The admin dashboard is useful to navigate your collections, schema, and debug your search. +The admin dashboard is useful to navigate your collections and debug your +search. You can access the admin dashboard by navigating to this URL in your browser: -`http://meilisearch.(DDEV_HOSTNAME):8100` +`https://(DDEV_HOSTNAME):7701` -To login, provide the configured API key, `127.0.0.1` as the hostname, and -`7700` as the port. +To login provide the configured API key. # Drupal and Search API diff --git a/docker-compose.meilisearch.yaml b/docker-compose.meilisearch.yaml index b1d8817..2b3473c 100644 --- a/docker-compose.meilisearch.yaml +++ b/docker-compose.meilisearch.yaml @@ -6,10 +6,13 @@ services: image: getmeili/meilisearch:v1.6 networks: [default, ddev_default] restart: "on-failure" + expose: + - "7700" environment: - MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-ddev} - ports: - - "7700:7700" + - VIRTUAL_HOST=$DDEV_HOSTNAME + - HTTP_EXPOSE=7700:7700 + - HTTPS_EXPOSE=7701:7700 labels: com.ddev.site-name: ${DDEV_SITENAME} com.ddev.approot: $DDEV_APPROOT @@ -22,18 +25,5 @@ services: web: links: - meilisearch:meilisearch - meilisearch_admin: - container_name: ddev-${DDEV_SITENAME}-meilisearch-admin - image: riccoxie/meilisearch-ui:latest - restart: always - labels: - com.ddev.site-name: ${DDEV_SITENAME} - com.ddev.approot: $DDEV_APPROOT - ports: - - "8100:24900" - environment: - - VIRTUAL_HOST=meilisearch.$DDEV_HOSTNAME - external_links: - - "ddev-router:${DDEV_SITENAME}.${DDEV_TLD}" volumes: meili_data: diff --git a/tests/test.bats b/tests/test.bats index 5c2af57..de8efe0 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -13,8 +13,6 @@ setup() { health_checks() { ddev exec "curl -s meilisearch:7700/health" | grep "available" - # todo: fix later when we understand why this fails in GHA but not on local machine - # ddev exec "curl -s -o /dev/null -I -w '%{http_code}' meilisearch_admin" | grep "200" } teardown() {