Production deployment
Production checklist for Faceplugin server SDKs. TLS, health checks, activate, no Gradio, networking, scale, and upgrades.
Use this checklist after a first-run install works. These are how you run the product. They are not new product features.
Before you go live
Use a Docker Hub image, or a fixed image tag you control. Avoid surprise
latestchanges in production if you need a locked build.Do not run Gradio (
demo/demo.py) in production. Gradio is a local test UI only.Activate with
POST /api/activate. Do not depend on an interactive terminal. Detached Compose has no TTY.Point your load balancer or orchestrator at
GET /api/health. No license is required for health.Put the APIs behind your reverse proxy. End TLS at nginx, Caddy, or your cloud load balancer. Open only the ports you need.
Keep the APIs on your private network when you can. The Flask apps allow CORS from any origin (
*). Do not treat CORS as security.Run one container or process per product. Prefer combined Face Recognition + Liveness (8083) and Document Reader with authenticity (8082) instead of separate liveness-only services. To scale, add more containers. Follow the license and machine-code rules on each platform page.
Read logs from
docker logsor process stdout. Faceplugin does not collect cloud telemetry from these apps.
License and machine code
A machine code identifies the server or container for licensing.
On Linux, mounting /etc/machine-id into each container can let several containers share one machine code. On Docker Desktop, omit that volume. Each container may need its own license. Details: Request a License & Support.
Upgrade path
Pull the new image, or replace files in
lib/cpu/.Restart the container or process.
Activate again if the machine code changed.
Smoke-test
GET /api/healthand one process endpoint (for example/api/detector/api/documentRecognition).
What production is not
These surfaces are for evaluation only:
Gradio demos on ports 9002–9006
Do not point production traffic at them.
Quick links
Topology and what you own
CPU, RAM, shm, ports
Endpoint contracts
First-run curls
Related documentation
Last updated