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.
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
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:
docker run -p 8080:8080 -v $PWD:/etc/krakend/ devopsfaith/krakend run -d
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
And any questions please let us know via Github issue