From b21316248572cb27ed1f504529ad6680a473022e Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 2 Jan 2024 20:42:01 +0100 Subject: gemini --- src/DB.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/DB.php') diff --git a/src/DB.php b/src/DB.php index 82a81c4..f91e934 100644 --- a/src/DB.php +++ b/src/DB.php @@ -9,11 +9,12 @@ class DB { { $driver = $_ENV['DB_DRIVER'] ?? 'pgsql'; $host = $_ENV['DB_HOST'] ?? 'db'; + $port = $_ENV['DB_PORT'] ?? 5432; $dbname = $_ENV['DB_NAME']; $user = $_ENV['DB_USER']; $password = $_ENV['DB_PASSWORD']; - self::$connection = new \PDO("pgsql:host=$host;dbname=$dbname", $user, $password); + self::$connection = new \PDO("pgsql:host=$host;port=$port;dbname=$dbname", $user, $password); } /** -- cgit v1.2.3