Mod-pg-embed is a simple Folio module that starts the "embedded" postgres server and sets up the environment so that other modules can locate the database. When it exits, it cleans up after itself.
The module is intended as a helper for developers.
There is a script
scripts/run.sh that demonstrates it