---
title: "Deploy KrakenD"
description: "KrakenD API gateway with a working private backend"
category: "Starters"
url: https://railway.com/deploy/krakend-gateway
---

# Deploy KrakenD

KrakenD API gateway with a working private backend

**[Deploy KrakenD on Railway](https://railway.com/template/krakend-gateway)**

- **Creator:** Tom
- **Category:** Starters

## Template content

### gateway https://raw.githubusercontent.com/monotykamary/railway-template-krakend/f74797375bce08f548f96190d670ecf7f98c9540/assets/krakend-icon.png

- **Source:** https://github.com/monotykamary/railway-template-krakend
- **Health check:** /__health
- **Public domain:** Yes

### echo https://raw.githubusercontent.com/monotykamary/railway-template-krakend/f74797375bce08f548f96190d670ecf7f98c9540/assets/krakend-icon.png

- **Source:** https://github.com/monotykamary/railway-template-krakend
- **Health check:** /healthz

## Documentation

# Deploy and Host KrakenD on Railway

## About Hosting KrakenD

KrakenD Community Edition is a high-performance stateless API gateway. This template deploys stable version 2.13.9 with a working private echo backend so the gateway path can be tested immediately and then replaced with your own APIs.

## Common Use Cases

- Route a public API to private Railway services
- Aggregate and transform backend responses
- Apply gateway rate limits and transport policies
- Maintain API gateway configuration in Git

## Dependencies for KrakenD Hosting

### Deployment Dependencies

- Public KrakenD gateway
- Private Caddy echo backend used as a replaceable example
- No database or persistent volume

### Implementation Details

Railway HTTPS routes to KrakenD on port 8080. `BACKEND_URL` references the private echo service on port 8081. The adapter renders a runtime configuration, validates it with `krakend check`, and starts only when the full file is valid. `/api/demo` proves end-to-end private routing; `/__health` supplies readiness.

The included rate limits and demo route are a starter, not a complete production security policy. Fork the repository and update `gateway/krakend.template.json` for your real APIs.

## Why Deploy KrakenD on Railway?

Railway provides managed HTTPS, private DNS, health checks, Git-based configuration deployment, and repeatable gateway rollouts without exposing backend services publicly.


## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

Open this page in a browser: https://railway.com/deploy/krakend-gateway
