Initial infrastructure setup
This commit is contained in:
commit
91f4ba3dbf
7 changed files with 754 additions and 0 deletions
15
init-databases.sh
Executable file
15
init-databases.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||
CREATE DATABASE vorteq_dev;
|
||||
GRANT ALL PRIVILEGES ON DATABASE vorteq_dev TO postgres;
|
||||
|
||||
CREATE DATABASE vorteq_test;
|
||||
GRANT ALL PRIVILEGES ON DATABASE vorteq_test TO postgres;
|
||||
|
||||
CREATE DATABASE vorteq_prod;
|
||||
GRANT ALL PRIVILEGES ON DATABASE vorteq_prod TO postgres;
|
||||
EOSQL
|
||||
|
||||
echo "Multiple databases created successfully!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue