π· Azure¶
MCP Gateway can be deployed on Azure in multiple ways:
- Azure Container Apps (serverless)
- Azure App Service (PaaS for containers)
- Azure Kubernetes Service (AKS) (fully managed K8s)
π Option 1: Azure Container Apps (Recommended)¶
Azure Container Apps is ideal for lightweight container-based workloads.
Steps¶
- Build and push your image to Azure Container Registry (ACR):
az acr login --name yourregistry
docker tag mcpgateway yourregistry.azurecr.io/mcpgateway
docker push yourregistry.azurecr.io/mcpgateway
- Create the container app:
az containerapp create \
--name mcpgateway \
--resource-group my-rg \
--image yourregistry.azurecr.io/mcpgateway \
--target-port 4444 \
--environment my-container-env \
--registry-server yourregistry.azurecr.io \
--env-vars-from-secrets .env
You can mount
.env
via Key Vault or inject environment variables directly.
π Option 2: Azure App Service¶
- Push your image to ACR
- Create an App Service plan and container-based Web App
- Set
PORT=4444
and other env vars in Configuration β Application settings - Map your custom domain (optional)
π Option 3: Azure Kubernetes Service (AKS)¶
Use your existing Kubernetes deployment instructions, but deploy to AKS.
- Deploy with Helm or
kubectl
- Use Azure Load Balancer or Application Gateway
- Store secrets in Azure Key Vault (optional)
π Secrets & Config¶
Use Azure CLI to upload your .env
values to App Config or Key Vault:
Then reference in App Service / Container App using environment variables.
π‘ DNS & TLS¶
- Use Azure Front Door or Application Gateway to handle TLS
- Point your domain to the public IP or hostname of the service
Example: