A lightweight gRPC server built using Golang and packaged as a Docker container.
There are two ways to run this project: either by cloning the repository and running the Go server manually or by pulling the Docker image and running a container
7362
. Both methods will run the server on localhost:50051
, so you can choose either option.
git clone https://github.com/prakhar-5447/godb-server.git
cd godb-server
go run cmd/server/main.go
To run the container in detached mode and expose the gRPC port 50051:
docker run -d -p 50051:50051 --name godb-container prakhar5447/godb-server
Check if the server is running:
- For manual run: You should see logs in your terminal.
- For Docker: Run the following command:
docker ps
If needed, inspect logs:
docker logs godb-container
To stop and remove the container, run:
docker stop godb-container && docker rm godb-container
If you don't want to build the image, you can pull it directly from Docker Hub:
docker pull prakhar5447/godb-server
Then run it as described above.