Listens on https port 7151 and will echo back whatever is published to grpc-echo on tcp port 50051.
- docker compose
- grpcurl
To start the Docker Compose stack defined in the compose.yaml file, use:
docker compose up -dEcho {"message":"Hello World"} message via unary rpc.
grpcurl -insecure -proto ./etc/protos/echo.proto -d '{"message":"Hello World"}' \
localhost:7153 grpc.examples.echo.Echo.UnaryEchooutput:
{
"message": "Hello World"
}Echo messages via bidirectional streaming rpc.
grpcurl -insecure -proto ./etc/protos/echo.proto -d @ \
localhost:7153 grpc.examples.echo.Echo.BidirectionalStreamingEchoPaste below message.
{
"message": "Hello World"
}To remove any resources created by the Docker Compose stack, use:
docker compose down