bitlikethis
bitlikethis
RRailway
Created by bitlikethis on 6/26/2023 in #✋|help
Tonic gRPC Server Configuration
I am trying to deploy a basic Tonic gRPC server. I have gotten it to run locally with
nixpacks build .
docker run -it -p 50051:50051 IMAGE
nixpacks build .
docker run -it -p 50051:50051 IMAGE
and then using grpcurl to call the SayHello route
grpcurl -plaintext -import-path ./proto -proto helloworld.proto -d '{"name": "Tonic"}' '0.0.0.0:50051' helloworld.Greeter/SayHello
grpcurl -plaintext -import-path ./proto -proto helloworld.proto -d '{"name": "Tonic"}' '0.0.0.0:50051' helloworld.Greeter/SayHello
but I have not figured out how to specify the docker run command to specify port forwarding. I do not have much docker/nixpacks experience, so any assistance would be appreciated 🙏 Project ID: c40cec25-018c-448d-b71c-8eaa73a09d4d
7 replies