mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-04-15 05:15:48 -05:00
17 lines
500 B
Bash
Executable File
17 lines
500 B
Bash
Executable File
#! /bin/sh
|
|
|
|
set -eu
|
|
|
|
git_base=$(git rev-parse --show-toplevel)
|
|
. "$git_base/scripts/.function-lib.sh"
|
|
if [ ! -f "$git_base/environment/postgres.local.env" ]; then
|
|
error "Missing environment file postgres.local.env. Did you run setup-environment.sh?"
|
|
exit 1
|
|
fi
|
|
. "$git_base/environment/postgres.env"
|
|
. "$git_base/environment/postgres.local.env"
|
|
|
|
docker compose up -d postgres
|
|
|
|
docker compose exec postgres psql -U "$POSTGRES_USER" -c "ALTER USER $POSTGRES_USER PASSWORD '$POSTGRES_PASSWORD';"
|