updated default credentials
This commit is contained in:
parent
88ba3ac7e1
commit
b996f8ed0f
@ -8,6 +8,8 @@ services:
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_USER: alice
|
||||
POSTGRES_PASSWORD: alice
|
||||
POSTGRES_DB: alice
|
||||
volumes:
|
||||
- ./_data:/var/lib/postgresql/data
|
||||
|
@ -24,11 +24,11 @@ if [ -z $PGDATABASE ]; then
|
||||
fi
|
||||
|
||||
if [ -z $PGUSER ]; then
|
||||
export PGUSER="postgres"
|
||||
export PGUSER="alice"
|
||||
fi
|
||||
|
||||
if [ -z $PGPASSWORD ]; then
|
||||
export PGPASSWORD="postgres"
|
||||
export PGPASSWORD="alice"
|
||||
fi
|
||||
|
||||
## Commandline opts:
|
||||
@ -61,7 +61,7 @@ fi
|
||||
|
||||
if [ $OPT_CLEAR -eq 1 ]; then
|
||||
echo "++ clearing database"
|
||||
$PSQL template1 -c "DROP DATABASE $PGDATABASE"
|
||||
$PSQL template1 -c "DROP DATABASE IF EXISTS $PGDATABASE"
|
||||
$PSQL template1 -c "CREATE DATABASE $PGDATABASE"
|
||||
fi
|
||||
######################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user