Overview
The Docker service is ideal for teams looking to self-host CyborgDB in cloud, on-prem, or containerized environments.Get an API Key
To use CyborgDB, you need an API key. You can get one from the CyborgDB Admin Dashboard.For quick evaluation, you can generate a temporary demo key using any of the SDKs:Then use the printed key as your
CYBORGDB_API_KEY when starting the service, and as the api_key when connecting with an SDK client.Make sure to keep your API key secure and do not share it publicly.Choose Your Storage Backend (Optional)
The container ships with three storage backends. Skip this
step and you get disk (embedded RocksDB) by default —
persisted in
/app/cyborgdb_data inside the container, which
you’ll typically bind to a host volume.- Disk (default) — embedded RocksDB. Persistent, no external dependencies.
- S3 — AWS S3 or any S3-compatible store (MinIO, Cloudflare R2, …). Best for cloud-native and multi-replica deployments.
- Memory — in-process only, nothing persists across restarts. For tests and ephemeral indexes.
v0.17 collapsed the storage surface. The previous
standalone, postgres, and redis backends and the catch-all CYBORGDB_CONNECTION_STRING are gone — switch standalone → disk and use the new CYBORGDB_DISK_PATH / CYBORGDB_S3_* variables.Pull the Docker Image
The CyborgDB service is available as a Docker image. You can pull it from Docker Hub:This image contains everything you need to run the CyborgDB service, including all dependencies and configurations.
Run with Docker (Quick Start)
- Disk (default)
- Memory
- S3 (AWS)
- S3 (MinIO / R2)
Inside the container the disk path defaults to
/app/cyborgdb_data — the -v mount above is what makes the data survive container recreation.Platform Differences:
- Linux uses
--network hostbecause Docker runs natively and can directly access the host network - macOS uses
-p 8000:8000andhost.docker.internalbecause Docker runs in a VM and needs port mapping
Run with Docker Compose (Recommended)
For a reproducible setup, use Docker Compose:
- Disk (default)
- S3 (AWS)
- S3 (MinIO)
Create a Then run:
docker-compose.yml file:Verify Installation
Once the service is running, verify it’s working correctly:Health Check:API Documentation:
Navigate to http://localhost:8000/v1/docs to explore the interactive API documentation.You should see a response indicating the service is healthy and ready to accept requests.
Advanced Configuration
For production deployments, consider these additional configurations:
- Environment Variables
- HTTPS Configuration
| Variable | Description | Required | Example |
|---|---|---|---|
CYBORGDB_API_KEY | Your CyborgDB API key | ✅ | cyborg_abc123... |
CYBORGDB_DB_TYPE | Storage backend (memory, disk, s3) | ❌ (defaults to disk) | s3 |
CYBORGDB_DISK_PATH | Data directory for disk storage | ❌ | /var/lib/cyborgdb |
CYBORGDB_S3_BUCKET | Bucket name for s3 storage | Required for S3 | my-bucket |
CYBORGDB_S3_REGION | Region for s3 storage | ❌ | us-east-1 |
PORT | Service port | ❌ | 8000 |
SSL_CERT_PATH | Path to SSL certificate file | ❌ | /etc/ssl/certs/server.crt |
SSL_KEY_PATH | Path to SSL private key file | ❌ | /etc/ssl/private/server.key |
Without
CYBORGDB_DB_TYPE, the service uses disk storage rooted at /app/cyborgdb_data inside the container. For the full list (including S3 credentials and KMS), see the Environment Variables guide.Next Steps
Now that your CyborgDB service is running, you can interact with it using client SDKs:Install Client SDKs:
REST API Reference
Learn how to use the REST API for direct integration
Python SDK Reference
Learn how to use the Python SDK for direct integration
JS/TS SDK Reference
Learn how to use the JavaScript/TypeScript SDK for direct integration
Go SDK Reference
Learn how to use the Go SDK for direct integration
Technical Specifications
Technical Specifications
- Base Image:
python:3.11-slim - Python Version: 3.11
- PyTorch: CPU-optimized for maximum compatibility
- Docker Image Size: ~1.8GB
- Platform: linux/amd64, linux/arm64
- Default Port: 8000
Comparison with Python Service
Comparison with Python Service
| Aspect | Python Service | Docker Service |
|---|---|---|
| Installation | pip install | docker run |
| Dependencies | Managed by pip/conda | Bundled in container |
| Resource Usage | Lower overhead | Higher overhead |
| Environment Isolation | Python virtualenv | Container isolation |
| Deployment Complexity | Simple Python deployment | Container orchestration |
| Configuration | Environment variables/files | Environment variables |
| Best For | Development, Python-heavy workflows | Production, cloud deployment |