Update 08-08-2024:
Docker image used is now gitlab/gitlab-ce:17.2.2-ce.0
Tried to change the gitlab.rb settings for gitlab-rails to
gitlab_rails['db_sslmode'] = "verify-full"
gitlab_rails['db_sslkey'] = "/data/tls/gitlab.key"
gitlab_rails['db_sslcert'] = "/data/tls/gitlab.crt"
gitlab_rails['db_sslrootcert'] = "/data/tls/ca.cer"
And changed the values to be enclosed in double quotes instead of single quotes.
The result is still no proper connection to the external database
2024-08-08_18:53:41.47287 E, [2024-08-08T18:53:41.471470 #344] ERROR -- : Bad connection to the database, resetting pool: connection to server at "10.0.0.151", port 15432 failed: FATAL: connection requires a valid client certificate
2024-08-08_18:53:41.47291 connection to server at "10.0.0.151", port 15432 failed: FATAL: no pg_hba.conf entry for host "192.168.230.110", user "gitlab", database "gitlabhq_production", no encryption
2024-08-08_18:53:41.47292
2024-08-08_18:53:41.48881 E, [2024-08-08T18:53:41.487497 #344] ERROR -- : Bad connection to the database, resetting pool: connection to server at "10.0.0.151", port 15432 failed: FATAL: connection requires a valid client certificate
2024-08-08_18:53:41.48910 connection to server at "10.0.0.151", port 15432 failed: FATAL: no pg_hba.conf entry for host "192.168.230.110", user "gitlab", database "gitlabhq_production", no encryption
2024-08-08_18:53:41.49002
2024-08-08_18:53:41.50425 E, [2024-08-08T18:53:41.501359 #344] ERROR -- : Bad connection to the database, resetting pool: connection to server at "10.0.0.151", port 15432 failed: FATAL: connection requires a valid client certificate
2024-08-08_18:53:41.50427 connection to server at "10.0.0.151", port 15432 failed: FATAL: no pg_hba.conf entry for host "192.168.230.110", user "gitlab", database "gitlabhq_production", no encryption