VALIDPDF417

Self-hosting

Team plan ships the same encoder as a container. No licence server, no phone-home.

Pull and run

bash
docker run -d --name pdf417 \
  -p 8000:8000 \
  -e SECRET_KEY="$(openssl rand -hex 32)" \
  -e ALLOWED_HOSTS="pdf417.internal" \
  ghcr.io/validpdf417/encoder:latest

Environment

VariableRequiredNotes
SECRET_KEYyes32+ random bytes
ALLOWED_HOSTSyesComma-separated
DEBUGnoDefault 0
MAX_DPInoDefault 1200
WORKERSnoDefault 4

Health check

bash
curl -sf http://localhost:8000/api/v1/jurisdictions >/dev/null && echo up

Resource 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.

No database The encoder is stateless. Jurisdiction and field tables are JSON on disk. Back up nothing but your env file.

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.

Generate barcode now