Install on Docker Desktop
This guide runs GRAX and its database on your own computer with Docker Desktop, for trials and testing. Backed-up data goes to a cloud storage bucket that you connect once GRAX is running.
Set Up Docker Desktop
Download, install, and run Docker Desktop. GRAX runs natively on both Intel and Apple Silicon machines.
Get a Registration Key
Sign into the GRAX Platform and go to "Deployments," then "New deployment," then "GRAX for Docker Desktop." Select "Continue with Docker Desktop," then "Create registration key."
Open the new deployment and use "Copy registration key" to copy it. This key can only be activated once.
Download and Configure GRAX Docker Compose Files
Download GRAX Docker Compose Files, unzip them, and create a settings file from the included example:
curl -L -o docker.zip https://s3.amazonaws.com/grax-public-templates/master/docker/docker.zip
unzip docker.zip
cd stacks/docker/grax
cp .env.example .envFill in every value in .env:
GRAX_REGISTRATION_KEY: the key from GRAX Platform.SECRET_STORE_BASE: a long random string, such as the output ofopenssl rand -hex 32. GRAX encrypts the credentials it stores with this value, so keep a copy somewhere safe; they can't be read without it.ADMIN_PASSWORD: the password for the localadminsign-in.
Start Up GRAX with Docker Compose
docker compose up -dThe first run downloads and builds everything, which takes a few minutes. GRAX is ready once docker compose ps shows it as healthy.
Use "Open GRAX" on your deployment in GRAX Platform, or go to https://localhost:8000 and sign in as admin with your ADMIN_PASSWORD. Your browser warns about the self-signed certificate on the local address.
Connect Storage
Before backing anything up, connect a storage bucket in GRAX's storage settings.
Pausing and Resuming
Pause GRAX with:
docker compose stopResume with docker compose start.
Resetting Everything
From the stacks/docker/grax directory, remove GRAX's containers, data, and image with:
docker compose down --volumes --rmi localThen, sign into the GRAX Platform, open your deployment, and use "Destroy deployment" to delete it and its registration key.
Last updated
Was this helpful?

