Deployment guide

Gel

Overview

Gel, formerly EdgeDB, is an open-source graph-relational database built on top of PostgreSQL. You describe your data as typed object types with links and properties in a declarative schema, evolve it through versioned migrations, and query it with EdgeQL, a composable query language that returns rich, deeply nested results without hand-written joins. Gel ships a built-in web administration interface, the Gel UI, with a schema browser, an interactive REPL and a data explorer.

This SecureAnyCloud image installs Gel 7 from the official package repository and runs the server as the packaged gel-server-7 systemd service, bound to loopback. It fronts the Gel UI with an nginx reverse proxy on TCP 80 with HTTP Basic auth. On the first boot of every VM, it generates a fresh database instance with a unique superuser password, TLS certificate and reverse-proxy password.

A small demo schema and data set are seeded, so the schema browser and data explorer are populated the moment you sign in. The image is backed by 24/7 SecureAnyCloud support.

What you get:

  • Gel 7 installed from the official packages.geldata.com repository, running as the gel-server-7 systemd service (data directory /var/lib/gel/7/data, PostgreSQL 17 backend)
  • The built-in Gel UI (schema browser, EdgeQL REPL, data explorer) fronted by nginx on :80
  • nginx HTTP Basic auth as an outer gate on the UI, with a per-VM password in a root-only file
  • The Gel server bound to loopback only (127.0.0.1:5656, HTTPS) and reached solely through the reverse proxy
  • A per-VM superuser password, TLS certificate and reverse-proxy password, generated fresh on the first boot of every VM and never baked into the image
  • A seeded demo schema (a Person and Movie object type with links) recorded as a real migration
  • gel-server-7.service and nginx.service as systemd units, enabled and active
  • 24/7 SecureAnyCloud support

Prerequisites

You need an active Azure subscription, an SSH key pair, and a VNet and subnet in the target region.

Standard_B2ms (2 vCPU / 8 GiB RAM) is a good starting size. Scale up for larger workloads.

In the NSG, allow inbound 22/tcp from your management network, and 80/tcp for the Gel UI. Front the UI with TLS for public exposure (see Enabling HTTPS). The database port 5656 stays bound to loopback and is never exposed.

Step 1 - Deploy from the Azure Marketplace

Sign in to the Azure Portal, choose Create a resource, search the Marketplace for Gel by SecureAnyCloud, and select Create.

On the Basics tab, pick your subscription, resource group, region and size. Under Administrator account, choose SSH public key and paste your key. Under Inbound port rules, allow SSH (22) and HTTP (80). Then select Review + create and Create.

Step 2 - Deploy from the Azure CLI

# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn sac1647283583153:gel-ubuntu-24-04:default:latest
az vm create \
  --resource-group <your-rg> \
  --name gel \
  --image sac1647283583153:gel-ubuntu-24-04:default:latest \
  --size Standard_B2ms \
  --admin-username azureuser \
  --ssh-key-values ~/.ssh/id_ed25519.pub \
  --vnet-name <your-vnet> --subnet <your-subnet> \
  --public-ip-sku Standard
az vm open-port --resource-group <your-rg> --name gel --port 80 --priority 1010

Step 3 - Connect to your VM

ssh azureuser@<vm-public-ip>

Step 4 - Confirm the services are running

systemctl is-active gel-server-7 nginx

Both services report active. The Gel server bootstraps a fresh instance on the first boot and applies the seeded migration. On later boots, it starts in a few seconds.

Step 5 - Retrieve your credentials

The superuser password, the Gel UI reverse-proxy password and the URLs are generated uniquely on the first boot of your VM and written to a root-only file. Read it with:

sudo cat /root/gel-credentials.txt

This file contains:

  • GEL_ADMIN_USER (admin) and GEL_ADMIN_PASSWORD: the Gel superuser, used to sign in to the Gel UI and to run EdgeQL
  • GEL_UI_USER and GEL_UI_PASSWORD: the outer nginx HTTP Basic auth credentials that gate the Gel UI
  • GEL_URL: the Gel UI address for this VM

Store these values somewhere safe.

Step 6 - Check the health endpoint and the network shape

nginx serves an unauthenticated health endpoint for load balancers and probes, while the database itself stays bound to loopback behind the authentication layer. Check the endpoint:

curl -s http://localhost/health

It returns ok. The Gel server listens only on 127.0.0.1:5656, and any request to the UI without the Basic-auth credentials is refused with 401. Confirm both:

sudo ss -tlnp | grep -E '127.0.0.1:5656|:80 ' || true curl -s -o /dev/null -w 'unauthenticated /ui/ -> HTTP %{http_code}\n' http://localhost/ui/

Step 7 - Sign in to the Gel UI

Browse to http://<vm-public-ip>/ui. Your browser first prompts for the nginx Basic-auth credentials. Enter GEL_UI_USER and GEL_UI_PASSWORD from Step 5.

The Gel UI then presents its own sign-in screen. Log in as admin with GEL_ADMIN_PASSWORD.

Step 8 - Browse the typed schema

Open the main branch, then the Schema view. The image ships a seeded schema with a Person type and a Movie type that links to a director and multiple actors. The schema browser shows both the declarative SDL and an entity graph.

To see the same schema and its recorded migration from the CLI, run:

PW=$(sudo grep '^GEL_ADMIN_PASSWORD=' /root/gel-credentials.txt | cut -d= -f2-) printf '%s\n' "$PW" | gel --host 127.0.0.1 --port 5656 --user admin --tls-security insecure --password-from-stdin query 'select schema::ObjectType { name } filter .name like "default::%";'

Step 9 - Query with EdgeQL

Use the built-in REPL to run EdgeQL. EdgeQL returns rich, nested results directly. For example, one query returns every movie with its release year and the director's name, with no joins.

The Data Explorer shows the seeded objects in a grid, with the typed columns and links.

You can run the same EdgeQL from the CLI. The gel client connects to the local server over the self-signed instance certificate:

PW=$(sudo grep '^GEL_ADMIN_PASSWORD=' /root/gel-credentials.txt | cut -d= -f2-) printf '%s\n' "$PW" | gel --host 127.0.0.1 --port 5656 --user admin --tls-security insecure --password-from-stdin query 'select Movie { title, release_year, director: { name } } order by .release_year;'

Step 10 - Insert and persist data

Mutations are ordinary EdgeQL. Insert a new object, and confirm that the count changes:

PW=$(sudo grep '^GEL_ADMIN_PASSWORD=' /root/gel-credentials.txt | cut -d= -f2-) printf '%s\n' "$PW" | gel --host 127.0.0.1 --port 5656 --user admin --tls-security insecure --password-from-stdin query "insert Person { name := 'Ada Lovelace' };" printf '%s\n' "$PW" | gel --host 127.0.0.1 --port 5656 --user admin --tls-security insecure --password-from-stdin query 'select count(Person);'

Data is stored in the PostgreSQL-backed instance under /var/lib/gel/7/data and persists across service restarts and reboots.

Step 11 - Connect an application

Gel provides client libraries for the popular languages. Point a client at the server with the superuser credentials, or create a dedicated role for the application. For example, in Python:

pip install gel import gel client = gel.create_client( host="127.0.0.1", port=5656, user="admin", password="<GEL_ADMIN_PASSWORD>", tls_security="insecure",
# self-signed per-VM cert; supply the cert for production ) print(client.query("select Movie { title } order by .release_year"))

For production, connect over the instance's TLS certificate (found in the data directory) rather than tls_security="insecure", and create a least-privilege role for the application instead of using the superuser.

Step 12 - Enabling HTTPS with your own domain

For public exposure, point a DNS record at the VM, and terminate TLS at nginx with a real certificate:

sudo apt-get install -y certbot python3-certbot-nginx
sudo certbot --nginx -d gel.your-domain.com

The database and the Gel UI already run over the loopback interface behind nginx, so adding a public certificate is all that is required to serve the UI over HTTPS.

Step 13 - Maintenance

  • Credentials: re-read them at any time with sudo cat /root/gel-credentials.txt.
  • Service management: sudo systemctl status gel-server-7 nginx, and sudo systemctl restart gel-server-7 to restart the database.
  • Logs: sudo journalctl -u gel-server-7 -n 100 --no-pager.
  • Backups: back up the data directory /var/lib/gel/7/data, or use gel dump to export a branch.
  • Updates: the OS receives unattended security updates. Upgrade Gel with sudo apt-get update && sudo apt-get install --only-upgrade gel-server-7.

Backed by 24/7 SecureAnyCloud support.

Deploy on Azure

Launch Gel on Ubuntu 24.04 LTS on Azure with 24/7 support from SecureAnyCloud.

View this image

Need Help?

Our support team is available 24/7.

sales@secureanycloud.com

Deploy on Azure