_lib/_storage/postgresOpen on GitHub

\n
1-click deploy
  • Deploy to Azure
  • Deploy to Digital Ocean
  • Deploy to AWS

or

2-click deploy

PostgreSQL installer, user+database init, and tester.

Local and image-creation usage

$ # Replace `$(pwd)` if not in the 'libscript' directory or a generated one.
$ export LIBSCRIPT_ROOT_DIR="$(pwd)"
$ # `export` any variables now (see below for variable docs). Then:
$ # Set script location:
$ export SCRIPT_NAME="${LIBSCRIPT_ROOT_DIR}"'/_lib/_storage/postgres/setup.sh'
$ . "${SCRIPT_NAME}"
> :: Replace `%cd%` if not in the 'libscript' directory or a generated one.
> SET "LIBSCRIPT_ROOT_DIR=%cd%"
> :: `SET` any variables now (see below for variable docs). Then:
> :: Set script location:
> SET SCRIPT_NAME="%LIBSCRIPT_ROOT_DIR%\_lib\_storage\postgres\setup.cmd"
> CALL "%SCRIPT_NAME%"

ObjectsOpen on GitHub

\n
1-click deploy
  • Deploy to Azure
  • Deploy to Digital Ocean
  • Deploy to AWS

or

2-click deploy

## postgres server vars

postgres vars that can be set

postgres server vars Properties

Type Description Required
POSTGRESQL_VERSION string Version of PostgreSQL demanded No
POSTGRES_USER string Username to create inside postgres No
POSTGRES_PASSWORD string Password for created user inside postgres No
POSTGRES_PASSWORD_FILE string Password file, its contents used as password for created user inside postgres No
POSTGRES_HOST string Hostname to serve postgres from No
POSTGRES_DB string Database to create within postgres No

Additional properties are allowed.

postgres server vars.POSTGRESQL_VERSION

Version of PostgreSQL demanded

postgres server vars.POSTGRES_USER

Username to create inside postgres

postgres server vars.POSTGRES_PASSWORD

Password for created user inside postgres

postgres server vars.POSTGRES_PASSWORD_FILE

Password file, its contents used as password for created user inside postgres

postgres server vars.POSTGRES_HOST

Hostname to serve postgres from

postgres server vars.POSTGRES_DB

Database to create within postgres

📧