devopsfaith/krakend
KrakenD - Ultra-High performance API Gateway with middlewares. Fastest API gateway in the market
10M+
This is the official Docker container for KrakenD.
KrakenD is an open source API Gateway that aggregates and manipulates multiple data sources coming from your microservices to provide the exact API your end-user products need while offering awesome performance.
The KrakenD docker is based on Alpine and offers a small image size.
Share your configuration as a volume (mapped to /etc/krakend
). Inside the volume you need at least the krakend.json
file which contains the endpoint definition of you application.
Generate your krakend.json here or use the sample file
The following are several examples of running krakend. By default the command run
is executed, but you can pass
other commands and flags at the end of the run command.
The configuration files are taken from current directory ($PWD
). It is expected to find at least the file krakend.json
.
Pull the image and run KrakenD (default parameters):
docker pull devopsfaith/krakend
docker run -p 8080:8080 -v $PWD:/etc/krakend/ devopsfaith/krakend
Run with the debug enabled (flag -d
):
docker run -p 8080:8080 -v "${PWD}:/etc/krakend/" devopsfaith/krakend run -d -c /etc/krakend/krakend.json
When the container is running with the previous line you can access the health endpoint:
curl HTTP://localhost:8080/__health
Check the syntax of the configuration file
docker run -it -p 8080:8080 -v $PWD:/etc/krakend/ devopsfaith/krakend check --config krakend.json
Show the help:
docker run -it -p 8080:8080 -v $PWD:/etc/krakend/ devopsfaith/krakend --help
Enjoy KrakenD!
And any questions please let us know via Github issue
docker pull devopsfaith/krakend