Self-hosting
Team plan ships the same encoder as a container. No licence server, no phone-home.
Pull and run
docker run -d --name pdf417 \
-p 8000:8000 \
-e SECRET_KEY="$(openssl rand -hex 32)" \
-e ALLOWED_HOSTS="pdf417.internal" \
ghcr.io/validpdf417/encoder:latestEnvironment
| Variable | Required | Notes |
|---|---|---|
SECRET_KEY | yes | 32+ random bytes |
ALLOWED_HOSTS | yes | Comma-separated |
DEBUG | no | Default 0 |
MAX_DPI | no | Default 1200 |
WORKERS | no | Default 4 |
Health check
curl -sf http://localhost:8000/api/v1/jurisdictions >/dev/null && echo upResource profile
Encoding is CPU-bound and short. One worker saturates a core at roughly 400 symbols/second. Memory is flat at ~90 MB per worker; there is no cache to warm.
Network and data
The container makes no outbound calls to encode a symbol. Jurisdiction data and the element registry are files in the image, and the encoder writes nothing to disk. That means the only data leaving the network is whatever your own application sends elsewhere; the barcode service itself can run with egress blocked.
Run it behind the same ingress as the rest of your services and keep the bearer check at the edge. The image does not include a key store, because keys are issued by us and enforced upstream. If you expose the container directly, put an authenticating proxy in front of it rather than relying on a network boundary alone.
Upgrades
Pull the new tag and restart. The IIN table is baked into the image, so an upgrade is also how you pick up jurisdiction corrections. Keep the previous tag locally until the new one has served a print batch; a rollback is then a tag change and a restart, not a rebuild.
Check the changelog before an upgrade. A release that changes the bytes of the output is marked breaking even when the API is unchanged, and those are the releases that matter to a self-hosted deployment because nothing else will warn you.