Giter Site home page Giter Site logo

tjoudeh / container-apps-meilisearch Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 5.9 MB

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

License: MIT License

C# 10.27% Bicep 89.73%
azure bicep bicep-templates containerapps meilisearch azure-container-apps container-apps

container-apps-meilisearch's Introduction

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

container-apps-meilisearch's People

Contributors

tjoudeh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.