diff --git a/geonetwork/geonetwork/templates/geonetwork_config.xml.j2 b/geonetwork/geonetwork/templates/geonetwork_config.xml.j2
index 2c676fa..f3a1d10 100644
--- a/geonetwork/geonetwork/templates/geonetwork_config.xml.j2
+++ b/geonetwork/geonetwork/templates/geonetwork_config.xml.j2
@@ -152,7 +152,7 @@
{{ geonetwork_db_user }}
{{ geonetwork_db_pwd }}
org.postgresql.Driver
- jdbc:postgis://geonetwork_db_hostname:5432/{{ geonetwork_db_name }}
+ jdbc:postgis://{{ geonetwork_db_hostname }}:5432/{{ geonetwork_db_name }}
40