title: I tried to deploy gRPC (go) server in docker and expose port in local port but port bindings are not working
body: <p>I tried to deploy gRPC server and mongodb in docker. After that I trying to binding docker ports to my local ports. mongodb ports binding was working fine. But, gRPC server ports are not binding my local port </p>
  
  <pre><code>ports:
    - "50051:50051"
  </code></pre>
  
  <p>like this i tried in docker-compose.yml</p>
  
  <p><b>docker-compose.yml</b></p>
  
  <pre><code>services:
    auth_server:
      container_name: auth_service
      build: .
      command: go run server.go
      volumes:
        - .:/go/src/auth_server
      working_dir: /go/src/auth_server
      ports:
        - "50051:50051"
      environment:
        PORT: 50051
  </code></pre>
  
  <p>In client gRPC file I used host and port like, <b>0.0.0.0:50051</b>  </p>
  
  <pre><code>conn, err := grpc.Dial("0.0.0.0:50051", grpc.WithInsecure())
  </code></pre>
  
  <p>but it was not working. I can't find any bug, so I assume I am doing something incorrectly.</p>