Deployment Examples
The repo ships minimum-viable IaC for the common managed-container platforms, each deploying a single gateway with caching, TLS, log export, and the admin API wired up.
| Target | Cache backend & auth | TLS terminates at |
|---|---|---|
| Standalone Docker Compose | Local disk in a named volume | Reverse proxy, or the gateway listener |
| Raw Kubernetes | PVC (50Gi), or swap to S3/MinIO/GCS/R2 | Ingress + cert-manager |
| GKE Autopilot (Tofu) | GCS via S3 interop, HMAC on a bound SA | GCE Ingress + managed cert |
| ECS Fargate (Tofu / CF) | AWS S3, task IAM role, no static keys | ALB + ACM |
| EKS Fargate (Tofu / CF) | AWS S3, IRSA, no static keys | ALB + ACM |
For S3 on AWS, prefer the task/IRSA role over static keys: grant s3:GetObject, s3:PutObject, s3:DeleteObject, and s3:ListBucket on the bucket and leave the access-key vars unset. The cloud examples take the image tag as an input (never :latest) and outputs the load-balancer address for you to point DNS at.
Offline installer downloads
Download a Secure Gateway 0.4.2 bundle and its checksum on a connected machine, then follow the offline installation procedure to verify and transfer both files to the gateway host. These links pin release commit 5b27bfefd74853ab47711adc644c9e55afa48dd7 for Linux x86_64.
- Docker: Download bundle, SHA-256 checksum
- Podman: Download bundle, SHA-256 checksum
- MicroShift: Download bundle, SHA-256 checksum
Prepare the host tools listed in the selected guide before disconnecting. The Docker bundle includes Docker Engine if it is missing; the Podman and MicroShift bundles require their runtimes already installed. MicroShift also needs its cluster images and storage prerequisites prepared separately.
The installers load the bundled gateway and SeaweedFS images without registry pulls. A fresh managed gateway still needs its initial cloud enrollment before its managed cache is usable; a successful /health check only confirms liveness. These bundles do not contain an Inference Server image or model weights for child hosts. Gateway requests that miss the cache still need an upstream connection.
Standalone Docker Compose
Use Docker Compose v2 without RFDM or device-handshake credentials. Save this as compose.yaml and choose your approved, version-pinned image. This example publishes HTTP only on loopback for a TLS proxy on the same host.
services:
secure-gateway:
image: repo.roboflow.com/roboflow-edge/secure-gateway:0.4.2
environment:
PORT: "8443"
ports:
- "127.0.0.1:8080:8443"
volumes:
- gateway-cache:/var/cache/secure-gateway
restart: unless-stopped
volumes:
gateway-cache:
docker compose up -d
curl -fsS http://127.0.0.1:8080/health
docker compose logs secure-gateway
Point Inference Servers at the TLS proxy with SECURE_GATEWAY=https://gateway.example.com. For TLS inside the gateway, follow TLS & Certificates for the version 0.4.2 rules for standalone and RFDM-managed certificates.
docker compose down stops the deployment and preserves the named cache volume. Adding --volumes deletes the cache.
Smoke test after deploy
# Liveness: does not touch upstreams
curl -fsS https://<your-hostname>/health
# Proxy a Roboflow API call through the gateway
curl -fsS "https://<your-hostname>/proxy?url=https://api.roboflow.com/"
# Cache stats (needs the admin token)
curl -fsS -H "Authorization: Bearer <token>" \
https://<your-hostname>/_cache/stats