Use your own PostgreSQL
The graph database is PostgreSQL with the Apache AGE extension. To use a PostgreSQL you already run:
- Install Apache AGE on it (1.6 or later), and create a database for the graphs.
- As a superuser, run the bundle's
sql/project-graph-init.sqlin that database. Its header shows the command. It creates the extension and Grafana's read-only login. It needs a superuser once, to let that login load AGE in every session. - In
.env, removeCOMPOSE_PROFILES=graph-dband setGRAPH_DB_HOST,GRAPH_DB_PORT,GRAPH_DB_NAME,GRAPH_DB_USERandGRAPH_DB_PASSWORDto the login that owns the graphs, andGRAPH_DB_SSLMODE(requirefor a remote database). - Skip the init job, which would need a superuser: start with
docker compose -f docker-compose-impact.yml up -d --scale graph-db-init=0. Re-run the SQL file by hand after an upgrade.