From a0192100312f66f5c890a04fe88cbebc4fb692ce Mon Sep 17 00:00:00 2001 From: Mateusz Trojak Date: Tue, 7 Feb 2017 17:38:12 +0100 Subject: [PATCH] Fixing lb configuration for postgres --- templates/postgres/0/rancher-compose.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/postgres/0/rancher-compose.yml b/templates/postgres/0/rancher-compose.yml index 4428156..31e4118 100644 --- a/templates/postgres/0/rancher-compose.yml +++ b/templates/postgres/0/rancher-compose.yml @@ -34,8 +34,13 @@ version: '2' services: postgres-lb: scale: 1 - load_balancer_config: - haproxy_config: {} + lb_config: + certs: [] + port_rules: + - protocol: tcp + service: postgres + source_port: ${lb_port} + target_port: 5432 health_check: port: 42 interval: 2000