# Deploying on AWS

# Virtual Machine (EC2)

You can run Curiosity on an Amazon EC2 instance using Docker.

# Requirements

  1. EC2 Instance: Launch an instance (e.g., Ubuntu or Amazon Linux 2).
  2. Persistent Storage (EBS): Create an Amazon EBS volume and attach it to your instance.
  3. Mounting: Format and mount the volume (e.g., to /data).

# Deployment

Once Docker is installed and the volume 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 (EKS)

Amazon Elastic Kubernetes Service (EKS) supports persistent storage for stateful applications.

# Persistent Storage

# Deployment

Use a StatefulSet configuration similar to the one described in the Kubernetes guide, ensuring your PersistentVolumeClaim references the correct StorageClass (e.g., gp2 or gp3 for EBS, or your EFS storage class).