
Meilisearch Python setup
First create a docker compose service: Name the service however you want. Checkout the latest version of meilisearch (1.16 may be old by now). chatcodfiscal-meilisearch : image : getmeili/meilisearch:v1.16 container_name : chatcodfiscal-meilisearch restart : unless-stopped expose : - " 7700" env_file : - ./webapp/.env.prod environment : - MEILI_HTTP_ADDR=0.0.0.0:7700 # uncomment this for prod if new index is created # - MEILI_IMPORT_DUMP=/meili_data/dumps/backup.dump volumes : # uncomment this for prod if new index is created # - ./webapp/data/meili_data/dumps/backup.dump:/meili_data/dumps/backup.dump - ./webapp/data/meili_data:/meili_data networks : - web In your env file add MEILI_MASTER_KEY and MEILI_HTTP_ADDR (use meilisearch service name from docker compose if the api is called within docker network). MEILI_MASTER_KEY = super-secret-key # uncomment this for prod # MEILI_HTTP_ADDR=http://chatcodfiscal-meilisearch:7700 # uncomment this for local MEILI_HTTP_ADDR = http://0.0.0.0:7700
Continue reading on Dev.to Tutorial
Opens in a new tab



