Skip to content

Environment variables

Pass configuration as -e NAME=value flags to docker run. Most variables have defaults; most deployments only set LICENSE_KEY (and API_KEY when the endpoint is reachable beyond localhost).

Language support is selected by image tag, not runtime environment. For example, raccoondata/agent-mask:fr-latest includes French models and preloads French at startup; multi-latest includes all supported languages and preloads English and Spanish by default. STARTUP_LANGUAGES can preload languages that are already included in the selected image; it does not add model files or enable languages that are absent from that image.

VariableDefaultPurpose
LICENSE_KEYunsetLicense key. Without a valid key, mask endpoints return 403 (details)
API_KEYunsetWhen set, the mask endpoints require Authorization: Bearer <API_KEY> (/health, /config, and /license do not require API key authentication)
VariableDefaultPurpose
PORT8000HTTP port inside the container
SYNC_TIMEOUT_SECONDS300How long POST /mask/sync waits before returning 504 (processing continues; poll GET /mask)
LOG_LEVELINFODEBUG, INFO, WARNING, ERROR
MAX_REQUEST_BODY_SIZE1 GBReject larger request bodies with 413
VariableDefaultPurpose
STARTUP_LANGUAGESimage-dependentComma-separated language codes to load immediately at container startup. Values must be languages already included in the selected image; other included languages load on first use.