diff --git a/2.Common_services/3.PostgreSQL/0_setup.py b/2.Common_services/3.PostgreSQL/0_setup.py
index 0411cb0804c756588abecbf7443c12e41e5bb51e..4d22bf3ef7f65c81a3cd4f57407d55cc9a587b65 100644
--- a/2.Common_services/3.PostgreSQL/0_setup.py
+++ b/2.Common_services/3.PostgreSQL/0_setup.py
@@ -5,7 +5,7 @@ import utils
 
 def setup(interactive=True):
     db_host = utils.get_conf('DB_HOST')
-    db_port = utils.get_conf('DB_PORT')
+    db_port = utils.get_conf('DB_PORT') or 5432
     if (db_host and not db_host.startswith('127') and db_host != 'localhost') or db_port != 5432:
         utils.log('Skipping postgresql setup because the database host is set to "%s:%i".' % (db_host, db_port))
         return