Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,21 @@ configs:
psql -v ON_ERROR_STOP=1 -U root <<-ESQL
CREATE USER ${DB_USER:-forge} WITH PASSWORD '${DB_PASSWORD:-secret}';
CREATE DATABASE flowforge;
ESQL
psql -v ON_ERROR_STOP=1 -U root flowforge <<-ESQL
GRANT ALL PRIVILEGES ON DATABASE flowforge TO ${DB_USER:-forge};
GRANT ALL ON SCHEMA public TO ${DB_USER:-forge};
ESQL
postgres_context_setup:
content: |
#!/bin/sh
set -e
psql -v ON_ERROR_STOP=1 -U root <<-ESQL
SELECT 'CREATE DATABASE "ff-context"' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'ff-context')\gexec
ESQL
psql -v ON_ERROR_STOP=1 -U root "ff-context" <<-ESQL
GRANT ALL PRIVILEGES ON DATABASE "ff-context" TO "${DB_USER:-forge}";
GRANT ALL ON SCHEMA public TO ${DB_USER:-forge};
ESQL
emqx:
content: |
Expand Down
Loading