first commit
This commit is contained in:
20
krakend.json
Normal file
20
krakend.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://www.krakend.io/schema/v2.12/krakend.json",
|
||||||
|
"version": 3,
|
||||||
|
"debug_endpoint": true,
|
||||||
|
"echo_endpoint": true,
|
||||||
|
"endpoints": [
|
||||||
|
{
|
||||||
|
"endpoint": "/test",
|
||||||
|
"backend": [
|
||||||
|
{
|
||||||
|
"@comment": "Connect KrakenD to KrakenD itself as backend!",
|
||||||
|
"host": [
|
||||||
|
"http://localhost:8080"
|
||||||
|
],
|
||||||
|
"url_pattern": "/__echo/test"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
23
stack.yaml
Normal file
23
stack.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
services:
|
||||||
|
krakend:
|
||||||
|
image: krakend:2.12.0
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
volumes:
|
||||||
|
- ./krakend.json:/etc/krakend/krakend.json:ro
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
replicas: 1
|
||||||
|
restart_policy:
|
||||||
|
condition: on-failure
|
||||||
|
networks:
|
||||||
|
- taxi
|
||||||
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
taxi:
|
||||||
|
driver: overlay
|
||||||
|
external: true
|
||||||
|
attachable: true
|
||||||
Reference in New Issue
Block a user