first commit

This commit is contained in:
A'zamov Samandar
2025-11-05 15:23:49 +05:00
commit f60163d5fa
2 changed files with 43 additions and 0 deletions

20
krakend.json Normal file
View 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
View 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