Self-host Kong Gateway on a VPS
An API gateway in database-less mode on the open source image. Load routes with the admin API at kong:8001 from inside this project. With no routes the proxy answers 404, which is the healthy state.
levelrail-cli templates deploy kong --name my-kongSpecification
- Status
- Listed
- Category
- Infrastructure
- Services
- kong
- Ports
- 8000, 8001
- Volumes
- 0
- Memory
- about 512 MiB
- arm64
- unknown
- amd64
- unknown
- Settings to fill in
- none
- License
- Permissive license, Apache-2.0
- Listing
- Community template
About Kong Gateway
An API gateway in database-less mode on the open source image. Load routes with the admin API at kong:8001 from inside this project. With no routes the proxy answers 404, which is the healthy state.
What it deploys
Kong Gateway runs as one service in a single Compose app, listening on ports 8000, 8001.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| kong | kong | 3.8.0 | 8000, 8001 | none |
Before you install
- CPU architecture. arm64 unknown. The scan could not read a manifest or the tag is chosen at install time. This is not a claim either way.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
Settings and environment
You do not have to fill in anything. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| kong | KONG_ADMIN_ACCESS_LOG | Preset by the template |
| kong | KONG_ADMIN_ERROR_LOG | Preset by the template |
| kong | KONG_ADMIN_LISTEN | Preset by the template |
| kong | KONG_DATABASE | Preset by the template |
| kong | KONG_PROXY_ACCESS_LOG | Preset by the template |
| kong | KONG_PROXY_ERROR_LOG | Preset by the template |
| kong | KONG_PROXY_LISTEN | Preset by the template |
First run
- Post a declarative config to kong:8001/config from a service in this project, then send traffic to the public address.
Install Kong Gateway on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get kong -
Deploy it
This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.
levelrail-cli templates deploy kong --name my-kong
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then Kong Gateway.
Docs and upstream
More in Infrastructure
- KrakenDStateless high performance API gateway on the official image. The install form carries krakend.json as an editable file, so it starts with a working route table instead of exiting on a missing config.
- imgproxyA fast image processing server that resizes, crops and converts images on the fly from signed URLs. Apache-2.0 licensed. A signing key and salt are generated for you, so only URLs signed with them are served.
- HeadscaleSelf-hosted Tailscale control server, configured entirely through environment variables. Embedded DERP and STUN are off (the platform has no UDP), so clients relay through the public Tailscale DERP map over HTTPS. Create users and pre-auth keys with the CLI in the container (headscale users create, headscale preauthkeys create).
- HAProxyHigh-performance TCP and HTTP load balancer on the official image. The install form carries haproxy.cfg as an editable file, so it starts with a working config instead of exiting on a missing one.
- MeshCentralA remote device management server with web-based desktop, terminal and file access, plus agents for Windows, Linux and macOS. Apache-2.0 licensed. The first account you register becomes the server admin, so register it before sharing the address. Set the host name to your public domain so agents can find the server.
- NATSA lightweight messaging server for pub/sub, request/reply and durable streams, with JetStream persistence enabled.