commit f60163d5fa28690f724ef921a49801069a7265bb Author: A'zamov Samandar Date: Wed Nov 5 15:23:49 2025 +0500 first commit diff --git a/krakend.json b/krakend.json new file mode 100644 index 0000000..1c261f1 --- /dev/null +++ b/krakend.json @@ -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" + } + ] + } + ] +} diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..b147ba5 --- /dev/null +++ b/stack.yaml @@ -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