Grpc + haproxy + docker not working

Hi all,

I’m trying to use haproxy for ssl auth so: client —ssl ----> haproxy --no ssl–> service (grpc)

Locally it works great, but while using docker compose things seems to fail.

ha.cfg:

global
  tune.ssl.default-dh-param 1024
 
defaults
  timeout connect 10000ms
  timeout client 60000ms
  timeout server 60000ms
 
 
frontend fe_https
  mode tcp
  bind *:8444 ssl ca-file /keys/server.cert crt /keys/server.pem alpn h2,http/1.1
  default_backend be_grpc

backend be_grpc
  mode tcp
  balance roundrobin
  server s1 grpc-server:1337

Docker-compose:

version: "3"
services:
  grpc-server:
    image: us.gcr.io/rookout/grpc-no-ssl:1
    command: ["python","app/server.py"]

  haproxy:
      environment:
        - EXTRA_GLOBAL_SETTINGS=debug
      image: us.gcr.io/rookout/haproxy
      links:
        -  grpc-server
      ports:
        - 8444:8444

Does any one know what can be the reason for it to work locally (macbook HA-Proxy version 1.8.4-1deb90d 2018/02/08
Copyright 2000-2018 Willy Tarreau willy@haproxy.org)
But not as part of docker?

Thanks,
Itiel.