# Deploying on Google Cloud Platform (GCP)

# Virtual Machine (Compute Engine)

You can run Curiosity on a Google Compute Engine instance using Docker.

# Requirements

  1. VM Instance: Create a VM instance.
  2. Persistent Storage: Add a Persistent Disk to your instance.
  3. Mounting: Format and mount the disk (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 (GKE)

Google Kubernetes Engine (GKE) provides seamless integration with Google Cloud persistent storage.

# Persistent Storage

GKE uses the Compute Engine persistent disk CSI Driver to manage storage.

# Deployment

Use a StatefulSet configuration similar to the one described in the Kubernetes guide. GKE typically includes a default standard or premium-rwo storage class.