Quick start

Two ports, one container, no database to install. At the end of this page you have a gateway running, an administrator account, and a request that went through it.

Start the gateway

Pick the edition you run and where you run it: the commands and the files below follow.

The two published ports are two different jobs:

Port Plane Who reaches it
8080 data plane your users - this is the one that faces the network
9090 control plane the administration console - keep it internal

A third port, 7070, is the internal plane: what your services call (the JWKS, the scheduler's API). It is not published, and a service on the same network reaches it by name.

/data holds everything the gateway knows: routes, accounts, the vault, the certificates. Back up that volume and you have backed up the gateway.

Never publish the control plane on the internet. It is the console and the admin API; nothing about it is meant to be public.

Check it is up

Before you open the console, ask the gateway whether it is ready:

curl -i http://localhost:8080/readyz

A ready gateway answers 200 with {"status":"UP","version":"..."}. A 503 names what is still missing. A refused connection means the container is not up: docker ps says whether it runs, and its log, read as shown below, says why.

The first administrator

On its very first start - and only when the account table is empty - the gateway creates one account, admin, with global rights.

Only in the second case do you need the log. Read it with the command that matches how you started the gateway:

# started with docker run --name meerkat
docker logs meerkat | grep 'admin account created'

# started with Docker Compose, from the directory of the compose file
docker compose logs meerkat | grep 'admin account created'
The variable is read only while there is no account at all. Setting it later changes nothing, and it is not a way to reset a forgotten password.

Sign in to the console

Open http://localhost:9090 and sign in as admin. If the password was generated, the console asks you for a new one before letting you anywhere else.

Send a first request through

A fresh gateway is empty: it has no route, so every address on port 8080 answers 404 - in a browser, a page that names the address and offers the sign-in. Give it one, pointing at a public test service:

  1. In the console, open Infra > Routes and click the round + button at the bottom right (its tooltip says New route). The route editor opens in a drawer; type demo in the Name field at its top.
  2. In Target, keep the mode Proxy. In Upstream, pick https in the small list in front of the field and type httpbin.org (pasting https://httpbin.org whole does the same).
  3. Open Predicates, click Add, pick Path, and type the pattern /demo/**.
  4. Open Incoming, click Add, pick Strip prefix, and leave Segments to strip at 1: the test service knows /get, not /demo/get.
  5. Click Save. The route serves at once, with nothing to restart.

The list that opens under Add names each brick in words (Path, Strip prefix); the reference pages give the same brick under its type, path or strip-prefix.

The route editor open on Target: the mode, the upstream and its port, the sections of the route down the left

Then open http://localhost:8080/demo/get in your browser, or call it from a terminal:

curl http://localhost:8080/demo/get

What you see is httpbin's answer: the request as the service received it, with the headers the gateway added on the way. An excerpt:

{
  "headers": {
    "Host": "httpbin.org",
    "X-Forwarded-Host": "localhost:8080",
    "X-Forwarded-Prefix": "/demo",
    ...
  },
  "url": "https://httpbin.org/get"
}

The service was asked for /get, and X-Forwarded-Prefix: /demo tells it which prefix the gateway removed. The call went in through the gateway and out to the service.

Open Data plane > Metrics in the console to see it counted, on the demo route.

Data plane > Metrics: requests per second, refusals and answer times over the last minute, then the routes

Next

That route is open to anyone and points at somebody else's service. Your first route puts one of your own behind the gateway, says who may reach it, and checks it before your users do.