This repository holds a docker compose with the API gateway KrakenD (Community Edition).
KrakenD is an open-source API gateway that simplifies the process of composing, routing, and aggregating microservices into a single RESTful JSON API. It helps you reduce latency, improve security, and streamline API management.
- Community Edition (open-source, unlimited use, corporate-grade features)
- Enterprise Edition (Extended functionalities, support, training, professional services)
- First KrakenD configuration file krakend.json.
The docker run command runs a command in a new container, pulling the image if needed and starting the container.
docker run -it -p 8080:8080 -v PWD:/etc/krakend/ devopsfaith/krakend run --config /etc/krakend/krakend.json
Now see http://localhost:8080/__health. The gateway is listening.
docker-compose up [--build] [-d]
curl http://localhost:8002/users # User-service
curl http://localhost:8003/products # Product-service
curl http://localhost:8081/api/sites # JSON Placeholder API