mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-12-06 04:18:35 +08:00
* 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>
7 lines
197 B
PL/PgSQL
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;
|