Azure Container Apps is a serverless container platform with built-in autoscaling. Make sure you have the Azure CLI installed and authenticated.
Create a resource group and Container Apps environment:
az group create \
--name gothic-rg \
--location eastus
az containerapp env create \
--name gothic-env \
--resource-group gothic-rg \
--location eastus Build and push your image to Azure Container Registry:
az acr create \
--name gothicacr \
--resource-group gothic-rg \
--sku Basic
az acr build \
--registry gothicacr \
--image gothic-app:latest . Deploy your Container App with Redis environment variables:
az containerapp create \
--name gothic-app \
--resource-group gothic-rg \
--environment gothic-env \
--image gothicacr.azurecr.io/gothic-app:latest \
--target-port 8080 \
--ingress external \
--env-vars REDIS_URL= REDIS_HOST :6379 For production Redis, use Azure Cache for Redis. Connect it to your Container Apps environment via a virtual network.
Prefer DigitalOcean? Let's set that up!