From bc0c068ed762d12655cf2e13594785fd064b7078 Mon Sep 17 00:00:00 2001 From: Mathieu HIREL Date: Tue, 19 Mar 2024 08:26:27 +0100 Subject: [PATCH] chore: expose postgres port --- config/database.yml | 3 +++ config/env.example | 1 + 2 files changed, 4 insertions(+) diff --git a/config/database.yml b/config/database.yml index 9612bd9fd..d30715a17 100644 --- a/config/database.yml +++ b/config/database.yml @@ -14,6 +14,7 @@ development: host: <%= ENV["DB_HOST"] %> username: <%= ENV["DB_USERNAME"] %> password: <%= ENV["DB_PASSWORD"] %> + port: <%= ENV["DB_PORT"] || 5432 %> # Workaround for https://github.com/ged/ruby-pg/issues/311 gssencmode: disable @@ -23,6 +24,7 @@ test: host: localhost username: tps_test password: tps_test + port: <%= ENV["DB_PORT"] || 5432 %> # Workaround for https://github.com/ged/ruby-pg/issues/311 gssencmode: disable @@ -32,3 +34,4 @@ production: &production host: <%= ENV["DB_HOST"] %> username: <%= ENV["DB_USERNAME"] %> password: <%= ENV["DB_PASSWORD"] %> + port: <%= ENV["DB_PORT"] || 5432 %> diff --git a/config/env.example b/config/env.example index fe8967840..190b691ad 100644 --- a/config/env.example +++ b/config/env.example @@ -22,6 +22,7 @@ DB_HOST="localhost" DB_POOL="" DB_USERNAME="tps_development" DB_PASSWORD="tps_development" +DB_PORT=5432 # Protect access to the instance with a static login/password (useful for staging environments) BASIC_AUTH_ENABLED="disabled"