2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-26 23:21:36 +01:00

update krakend

This commit is contained in:
kev
2019-12-02 18:28:46 +08:00
parent ccd9c938c8
commit f77d0a5990
4 changed files with 42 additions and 0 deletions

10
krakend/README.md Normal file
View File

@@ -0,0 +1,10 @@
krakend
=======
[KrakenD][1] is a high-performance open source API Gateway.
Its core functionality is to create an API that acts as an aggregator of many
microservices into single endpoints, doing the heavy-lifting automatically for
you: aggregate, transform, filter, decode, throttle, auth and more.
[1]: https://www.krakend.io/

24
krakend/data/krakend.json Normal file
View File

@@ -0,0 +1,24 @@
{
"version": 2,
"name": "My httpbin gateway",
"port": 8080,
"endpoints": [
{
"endpoint": "/httpbin",
"backend": [
{
"host": [
"https://httpbin.org"
],
"url_pattern": "/headers"
},
{
"host": [
"https://httpbin.org"
],
"url_pattern": "/ip"
}
]
}
]
}

View File

@@ -0,0 +1,7 @@
krakend:
image: devopsfaith/krakend
ports:
- "8080:8080"
volumes:
- ./data:/etc/krakend
restart: unless-stopped