linux/amd64 and linux/arm64.
Pull the image
Run it
SetCUSTOS_API_UPSTREAM to the control-plane address reachable from the container. nginx forwards
the browser’s same-origin /api/* requests there. When the control plane runs on the Docker host:
http://localhost:3000; the health endpoint is /healthz. host.docker.internal already
exists on Docker Desktop, and the explicit --add-host makes the example work on Docker Engine for
Linux too.
Follow the container’s logs with docker logs -f custos-frontend.
If the control plane runs in a container, attach both containers to the same user-defined Docker
network and use the control-plane container name as the upstream host:
Browser telemetry
To enable Faro, setCUSTOS_FARO_UPSTREAM to the base URL of an Alloy Faro receiver reachable
from the container, such as http://alloy:12347. nginx forwards the browser’s /collect requests
to the receiver. Leaving the variable unset or empty disables Faro in the browser.
Find the latest tag
If you want to pin the deployment to a release, get the current version tag withcurl.
latest in the pull and run commands with the returned tag, including the leading v.
Runtime settings
The container writes/config.js at startup rather than baking installation-specific values into
the JavaScript bundle. So the same image works for every installation.
CUSTOS_SERVER_TRANSPORT_PUBLIC_KEY is the value custoscp gen-keys prints — see
Configuration. It must match the control plane’s
CUSTOS_SERVER_TRANSPORT_PRIVATE_KEY, and CUSTOS_ENCRYPTION must agree on both sides.
Request flow
nginx strips/api before forwarding, so a browser request to /api/credentials arrives at the
control plane as /credentials. /collect is forwarded unchanged to Alloy. traceparent and other
headers pass through normally, so frontend-to-backend trace correlation survives.
Neither upstream has to be publicly reachable. TLS terminates at the load balancer or ingress in
front of port 8080.
Because the browser calls same-origin paths through this proxy, a container deployment normally does
not need
CUSTOS_CORS_ORIGINS set on the control plane. That setting matters when a browser calls
the control plane directly on another origin.Build it yourself
APP_VERSION identifies the exact build; it is reported to Faro and shown in the account menu.