From da43e64ecfb03334931073981755a6d1ebf1dd70 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Thu, 14 Jan 2016 12:35:49 +0530 Subject: [PATCH] the official `postgres` image create the database named `POSTGRES_USER` if `POSTGRES_DB` is not specified --- assets/runtime/functions | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/runtime/functions b/assets/runtime/functions index 91fe19e9..bcbf8122 100644 --- a/assets/runtime/functions +++ b/assets/runtime/functions @@ -114,6 +114,7 @@ gitlab_finalize_database_parameters() { DB_USER=${DB_USER:-${POSTGRESQL_ENV_POSTGRES_USER}} DB_PASS=${DB_PASS:-${POSTGRESQL_ENV_POSTGRES_PASSWORD}} DB_NAME=${DB_NAME:-${POSTGRESQL_ENV_POSTGRES_DB}} + DB_NAME=${DB_NAME:-${POSTGRESQL_ENV_POSTGRES_USER}} # support for linked sameersbn/postgresql image DB_USER=${DB_USER:-${POSTGRESQL_ENV_DB_USER}}