Parseable

DigitalOcean Spaces

Use DigitalOcean Spaces as storage backend for Parseable


Configure DigitalOcean Spaces as the storage backend for Parseable.

Overview

Using DigitalOcean Spaces with Parseable provides:

  • S3 Compatible - Works with S3-compatible tools
  • Cost Effective - Simple, predictable pricing
  • CDN Included - Built-in content delivery
  • Easy Setup - Simple configuration

Prerequisites

  • DigitalOcean account
  • Spaces bucket created
  • Spaces access keys
  • Parseable instance

Parseable Configuration

Environment Variables

# DigitalOcean Spaces Configuration
P_S3_URL=https://nyc3.digitaloceanspaces.com
P_S3_BUCKET=parseable-data
P_S3_REGION=nyc3
P_S3_ACCESS_KEY=your-spaces-key
P_S3_SECRET_KEY=your-spaces-secret

Docker Compose

version: '3.8'
services:
  parseable:
    image: parseable/parseable:latest
    ports:
      - "8000:8000"
    environment:
      - P_S3_URL=https://nyc3.digitaloceanspaces.com
      - P_S3_BUCKET=parseable-data
      - P_S3_REGION=nyc3
      - P_S3_ACCESS_KEY=${DO_SPACES_KEY}
      - P_S3_SECRET_KEY=${DO_SPACES_SECRET}
      - P_USERNAME=admin
      - P_PASSWORD=admin
    command: ["parseable", "s3-store"]

Spaces Setup

Create Space

  1. Go to Spaces in DigitalOcean console
  2. Click Create a Space
  3. Choose datacenter region
  4. Name your Space (e.g., parseable-data)
  5. Choose file listing permissions
  6. Click Create a Space

Generate Access Keys

  1. Go to APISpaces Keys
  2. Click Generate New Key
  3. Name your key
  4. Copy the Key and Secret

Available Regions

RegionEndpoint
NYC3https://nyc3.digitaloceanspaces.com
SFO3https://sfo3.digitaloceanspaces.com
AMS3https://ams3.digitaloceanspaces.com
SGP1https://sgp1.digitaloceanspaces.com
FRA1https://fra1.digitaloceanspaces.com

Configuration Options

ParameterDescription
P_S3_URLSpaces endpoint URL
P_S3_BUCKETSpace name
P_S3_REGIONDatacenter region
P_S3_ACCESS_KEYSpaces access key
P_S3_SECRET_KEYSpaces secret key

Lifecycle Rules

Configure lifecycle rules via s3cmd or API:

# Install s3cmd
pip install s3cmd

# Configure s3cmd
s3cmd --configure

# Set lifecycle policy
s3cmd setlifecycle lifecycle.xml s3://parseable-data

Lifecycle XML

<LifecycleConfiguration>
  <Rule>
    <ID>MoveToInfrequentAccess</ID>
    <Status>Enabled</Status>
    <Transition>
      <Days>30</Days>
      <StorageClass>GLACIER</StorageClass>
    </Transition>
  </Rule>
</LifecycleConfiguration>

Best Practices

  1. Choose Nearest Region - Reduce latency
  2. Enable CDN - For read-heavy workloads
  3. Use CORS - If accessing from browsers
  4. Monitor Usage - Track storage and bandwidth
  5. Secure Keys - Use environment variables

Troubleshooting

Access Denied

  1. Verify access keys are correct
  2. Check Space permissions
  3. Verify endpoint URL matches region
  4. Check key hasn't been revoked

Connection Issues

  1. Verify network connectivity
  2. Check firewall rules
  3. Verify endpoint URL format

Next Steps

Was this page helpful?

On this page