diff --git a/stack/lapp/instance-postgres.cfg.in b/stack/lapp/instance-postgres.cfg.in
index c5588eb122e4296ed2860248c0242d078b170d3b..2ca485870fc691a72a7a7fa494016ab943a68725 100644
--- a/stack/lapp/instance-postgres.cfg.in
+++ b/stack/lapp/instance-postgres.cfg.in
@@ -57,8 +57,8 @@ bin = $${directories:bin}
 [postgres-promise]
 recipe = slapos.cookbook:check_port_listening
 path = $${directories:promises}/apache
-hostname = $${postgresql:host}
-port = $${postgresql:port}
+hostname = $${postgres-instance:ipv6_host}
+port = $${postgres-instance:port}
 
 
 [publish]