# Deploying on Azure

# Virtual Machine

You can run Curiosity on an Azure Virtual Machine using Docker.

# Requirements

  1. Virtual Machine: Create a Linux VM (e.g., Ubuntu).
  2. Persistent Storage: Create and attach a Managed Disk to your VM.
  3. Mounting: Connect to the VM, format the disk, and mount it (e.g., to /data).

# Deployment

Once Docker is installed and the disk is mounted at /data:

docker run -p 8080:8080 -v /data:/data -e storage=/data curiosityai/curiosity

Alternatively, you can use Docker Compose to manage the service configuration.

# Managed Kubernetes (AKS)

Azure Kubernetes Service (AKS) provides native support for persistent volumes.

# Persistent Storage

AKS supports multiple storage options. For Curiosity, Azure Disk (block storage) is recommended for performance.

# Deployment

Use a StatefulSet configuration similar to the one described in the Kubernetes guide. AKS typically provides a default default or managed-csi storage class that provisions Azure Disks automatically.