Skip to main content

Environment Variables

The SQLite registry is stored at $PETRI_WORKSPACE_ROOT/registry.db alongside sandbox workspaces. The docker-compose.yml sets PETRI_WORKSPACE_ROOT=/tmp/petri-workspaces and mounts it automatically. No additional configuration needed.
/tmp/petri-workspaces is ephemeral — workspaces are cleared when the host restarts. For persistent workspaces, override PETRI_WORKSPACE_ROOT with a permanent path and update the volume mount in docker-compose.yml.

Local Development

Workspaces are stored at ~/.petri/workspaces by default.