You can run sendgrpc container with your docker-compose.yml file. Just add a new service:
sendgrpc:
image: dbarzdys/sendgrpc
volumes:
- ./your-config-file.json:/etc/sendgrpc/sendgrpc.conf.json
- ./your-service.proto:/etc/sendgrpc/protos/your-service.proto
ports:
- 8888:8888
Example of sendgrpc.conf.json file:
{
"servers": [
{
"name": "your-service-name",
"protoPath": "protos/your-service.proto",
"target": "http://your-service:80"
}
]
}
You can also install this tool using npm.
npm install -g sendgrpc
And then run:
sendgrpc -p [port] -c [config-file]