Skip to content

Add Meilisearch Container

ucan-lab edited this page Jun 14, 2023 · 2 revisions

Meilisearch

https://www.meilisearch.com

compose.yml

https://hub.docker.com/r/getmeili/meilisearch

volumes:
  meili-store:

services:
  app:
    # ...
    environment:
      - SCOUT_DRIVER=${SCOUT_DRIVER:-meilisearch}
      - MEILISEARCH_HOST=${MEILISEARCH_HOST:-http://meilisearch:7700}
      - MEILISEARCH_KEY=${MEILISEARCH_KEY:-MY_API_KEY}

  # ...
  meilisearch:
    image: getmeili/meilisearch
    ports:
      - target: 7700
        published: ${MEILISEARCH_PUBLISHED_PORT:-7700}
        protocol: tcp
        mode: host
    environment:
      - MEILI_MASTER_KEY=MY_API_KEY
    volumes:
      - type: volume
        source: meili-store
        target: /var/lib/data.ms
        volume:
          nocopy: true