Designate 'postgres' as a variable in entrypoint.sh
Rationale: clarity.
@@ -8,8 +8,8 @@ set -o nounset
cmd="$@"
if [ -z "${POSTGRES_USER}" ]; then
- # the official postgres image uses 'postgres' as default user if not set explictly.
- export POSTGRES_USER=postgres
+ base_postgres_image_default_user='postgres'
+ export POSTGRES_USER="${base_postgres_image_default_user}"
fi
export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
