Service installation and deployment
1. Installation and deployment
The service is containerized, and a Docker image is available in a Facephi repository.
docker login facephicorp.jfrog.io
user: username
pass: tokendocker pull facephicorp.jfrog.io/docker-pro-fphi/facephi-ine-service:#VERSION#Where #VERSION# is the specific version number to download (for example, 1.6.0).
2. docker-compose
One way to deploy the service is to create a docker-compose.yml file with the following content:
version: '3.7'
services:
ine-service:
ports:
- "6982:6982"
volumes:
- ./config:/service/config
- ./logs:/service/logs
image: facephicorp.jfrog.io/docker-pro-fphi/facephi-ine-service:latest
container_name: facephi-ine-service
environment:
# Optional JWT protection
# - FACEPHI_INE_REST_AUTH_ENABLED=true
# - FACEPHI_INE_REST_AUTH_JWT_SECRET=shared-secret
# - FACEPHI_INE_REST_AUTH_ACCEPT_AUTHORIZATION_HEADER=true
# - FACEPHI_INE_REST_AUTH_ACCEPT_API_KEY_HEADER=true
# - FACEPHI_INE_REST_AUTH_API_KEY_HEADER_NAME=x-api-keyNote the volumes mounted in the container. These volumes are used to store the service configuration files and write the logger output.
Run the following command from the folder containing the docker-compose.yml file to deploy the service:
3. Configuration
The configuration file can contain the following information:
The configuration file can be passed as a parameter to the service. By default, the service looks for a file named /service/config/config.json.
The configuration precedence order is:
Environment variables
FACEPHI_INE_REST_*config.jsonAPI default values set by the service before startup
Internal default values of
Rest::Manager
JWT authentication is optional and disabled by default.
Public endpoints remain accessible without authentication:
GET /api/v1/healthandGET /api/v1/version.POST /api/v1/facial/authenticationrequires a valid JWT when JWT authentication is enabled.The service does not expose endpoints
GET/POST /configat runtime, so JWT configuration cannot be viewed or modified through a public configuration API.
Supported JWT environment variables:
FACEPHI_INE_REST_AUTH_ENABLEDFACEPHI_INE_REST_AUTH_JWT_SECRETFACEPHI_INE_REST_AUTH_ACCEPT_AUTHORIZATION_HEADERFACEPHI_INE_REST_AUTH_ACCEPT_API_KEY_HEADERFACEPHI_INE_REST_AUTH_API_KEY_HEADER_NAME
Last updated