A distributed, native GraphQL graph database with its own DQL query language.
Dgraph is a distributed, open source graph database built for high performance and horizontal scale, written in Go. It stores data as a graph of nodes and typed relationships and answers deeply joined traversals, full text, geo and regular expression queries in milliseconds through its own DQL query language and a native GraphQL API, over clean HTTP and gRPC endpoints.
It suits any team building knowledge graphs, recommendations, fraud detection, identity graphs or retrieval augmented generation that wants a fast graph database they run and own inside their own cloud account rather than a hosted service.
The cloudimg image installs Dgraph from the official release and runs its coordinator and data node behind an nginx reverse proxy that binds every database listener to loopback and terminates TLS, so the HTTP API is reachable securely within minutes. Open source Dgraph ships with no built in access control, so this image adds two independent layers, both unique to each machine and generated on first boot rather than baked in: nginx HTTP basic authentication gates every request, and a per machine security token guards administrative operations such as altering the schema. Graph data lives on a dedicated, independently resizable data volume. The paired deployment guide covers reading your credentials, setting a schema, running your first mutation and query and enabling a real TLS certificate, and every deployment carries 24/7 support.
This is a repackaged open source software product wherein additional charges apply for cloudimg support services.
## The Problem: Open Source Dgraph Ships Unsecured
A bare Dgraph deployment exposes full read, write, and admin access - including drop-all - to anyone who can reach the port. There is no built-in access control and no authentication out of the box. Hardening it yourself means installing packages, configuring a reverse proxy, generating credentials, and troubleshooting dependencies. This AMI eliminates that entire process.
## How This AMI Solves It
Every instance generates two independent secrets on first boot - unique per machine and never baked into the image - and fronts the database with a TLS reverse proxy. You move from EC2 launch to a secured, authenticated graph database in minutes with zero manual configuration. Unlike a bare install, the alpha start wrapper is fail-closed: it refuses to start without a token, so the server can never run open.
## Graph Database Stack
## Secure First Boot
On first launch a one-shot systemd service generates a per-instance nginx basic-auth username and password and a per-instance Dgraph admin security token, writing the plain-text values to a file readable only by the root OS user. Every request to the HTTP API is refused without the basic-auth credentials. Every administrative operation such as altering the schema additionally requires the security token, and admin access is restricted to the local host. The database processes bind only to the loopback interface and are reached solely through the nginx reverse proxy.
## Security and Encryption Guidance
## Getting Started
Retrieve the generated credentials with sudo cat /root/dgraph-info.txt, then call the HTTPS API with the basic-auth user and password. Set a schema with the admin token, run RDF or GraphQL mutations, and query the graph immediately.
## Use Cases
## Why cloudimg Support
24/7 technical support by email and live chat. Our engineers assist with Dgraph deployment, schema and index design, TLS and reverse-proxy configuration, credential rotation, and performance tuning. Critical issues receive a one-hour average response time.
All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.