chore(database): add postgres and valkey services
These are used by `strapi` and `directus` to store data.
This commit is contained in:
7
services/database/scripts/postgres/00-create-strapi-database.sh
Executable file
7
services/database/scripts/postgres/00-create-strapi-database.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||
CREATE DATABASE strapi;
|
||||
GRANT ALL PRIVILEGES ON DATABASE strapi TO ${POSTGRES_USER};
|
||||
EOSQL
|
7
services/database/scripts/postgres/01-create-directus-database.sh
Executable file
7
services/database/scripts/postgres/01-create-directus-database.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||
CREATE DATABASE directus;
|
||||
GRANT ALL PRIVILEGES ON DATABASE strapi TO ${POSTGRES_USER};
|
||||
EOSQL
|
Reference in New Issue
Block a user