Files
deer-flow/docker/postgres-init.sql
TotoroandTotoro-qaq 00469558c6 feat(deploy): add opt-in PostgreSQL for single-host Compose (#8885)
* feat(deploy): support opt-in PostgreSQL in production Compose

* fix(deploy): include PostgreSQL logs on startup failure

* docs(deploy): document bundled PostgreSQL in the env example

* fix(deploy): stop bundled PostgreSQL after its env file is removed

* fix(deploy): give the bundled PostgreSQL Gateway a database-scoped login

* fix(deploy): include the selected PostgreSQL service in production logs

---------

Co-authored-by: Totoro-qaq <279883115+Totoro-qaq@users.noreply.github.com>
2026-12-04 07:15:35 +08:00

7 lines
197 B
PL/PgSQL

\getenv app_password DEER_FLOW_POSTGRES_PASSWORD
BEGIN;
CREATE ROLE deerflow LOGIN NOSUPERUSER NOCREATEDB NOCREATEROLE PASSWORD :'app_password';
ALTER DATABASE deerflow OWNER TO deerflow;
COMMIT;