tjoudeh / Container-Apps-Meilisearch

Sample repository shows how to deploy Meilisearch into Azure Container Apps with complete Bicep/ARM templates using Deploy to Azure Button

Home Page:https://bit.ly/3TavzGb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy Meilisearch on Azure Container Apps

Companion blog post to go over the creation of this Infrastructure as Code for deploying Meilisearch on Azure Container Apps and host DB files on Azure Storage Files.

Deploy using 'Deploy to Azure Button'

You can deploy Meilisearch to Azure Container Apps using the button below. Configuration is flexible, yet you can update the bicep file if you need to change configuration which is not exposed as parameters.

Deploy to Azure

As per the image below, you can provide the below configuration:

  • Region (Region for the resource group created).
  • Location: The Azure region code ("westus", "northeurope", "australiacentral", etc...). This should be a region where Azure container Apps and Azure Storage is available, you can check where Azure Container Apps are available on this link.. please use the same value as the Region
  • Application Name: the name of the Meilisearch search service, this name will be part of the FQDN and will be used to set resource group name, storage, container app environment, and log analytics workspace.
  • Container Resources: Container App CPU and Memory. Read here to understand more about those CPU/Memory combinations. The limits are soft limits and you can request to increase the quota by submitting a support request.
  • Deployment Environment: Used to identify deployment resources ("dev", "stg", "prod", etc...) and tag them with the selected environment, this has nothing to do with the capacity or performance of the resources provisioned. This will be useful if you are deploying multiple  Meilisearch instances under the same subscription for dev/test scenarios.
  • Meilisearch Master Key: This is the Master API Key used with the Meilisearch instance, minimum length is 32 characters. The recommendation is to generate a strong key, if not provided deployment template will generate a guide as the Master API key.

image

When the deployment completes successfully, you should see the resource group and the below resources created under the subscription selected as the image below:

image

Deploy using 'Azure CLI'

  1. Ensure you have logged in to Azure CLI and you selected the right subscription.
  2. If you are using PowerShell you can execute the command below, do not forget to generate your own Master Key
az deployment sub create `
  --template-file ./main.bicep `
  --location WestUS `
  --parameters '{ \"meilisearchMasterKey\": {\"value\":\"YOUR_MASTER_KEY\"}, \"applicationName\": {\"value\":\"YOUR_APP_NAME\"}, \"deploymentEnvironment\": {\"value\":\"dev\"}, \"location\": {\"value\":\"westus\"} }'
  1. If you are using Bash you can execute the command below:
az deployment sub create \
--name YOUR_APP_NAME \
--template-file .\main.bicep 
--location WestUS \
--parameters applicationName=MYAPPLICATIONNAME meilisearchMasterKey=YOUR_MASTER_KEY deploymentEnvironment=dev location=westus

About

Sample repository shows how to deploy Meilisearch into Azure Container Apps with complete Bicep/ARM templates using Deploy to Azure Button

https://bit.ly/3TavzGb

License:MIT License


Languages

Language:Bicep 89.7%Language:C# 10.3%