# Grpc + haproxy + docker not working

**URL:** <https://discourse.haproxy.org/t/grpc-haproxy-docker-not-working/2154>\
**Category:** Help!\
**Created:** [February 23, 2018, 1:00am UTC](https://discourse.haproxy.org/t/grpc-haproxy-docker-not-working/2154 "2018-02-23T01:00:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![itiel](https://avatars.discourse-cdn.com/v4/letter/i/ac8455/32.png) [@itiel](https://discourse.haproxy.org/u/itiel)\
**Post date:** [February 23, 2018, 1:00am UTC](https://discourse.haproxy.org/t/grpc-haproxy-docker-not-working/2154/1 "2018-02-23T01:00:32Z")

</div>

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](mailto:willy@haproxy.org))  
But not as part of docker?

Thanks,  
Itiel.
