Quick Start with Docker
Images: moov/watchman on Docker Hub (libpostal, about 3GB of models), moov/watchman:slim without those models, quay.io/moov/watchman for OpenShift. moov/watchman:v2-static ships frozen 2019 files for fast local tests.
Business API on :8084. Admin/metrics on :9094. Do not expose Watchman on the public internet. See Network access.
docker run -p 8084:8084 -e INCLUDED_LISTS=us_ofac moov/watchman
WASM UI: http://localhost:8084. In another terminal, wait until OFAC is indexed, then screen at a production cutoff:
until curl -sf http://localhost:8084/v2/listinfo | jq -e '.lists.us_ofac > 0' >/dev/null; do sleep 2; done
curl -s "http://localhost:8084/v2/search?type=person&name=Dmitry+Khoroshev&gov_passport=RU:2018278055&minMatch=0.80&limit=1" \
| jq '{name: .entities[0].name, match: .entities[0].match, sourceID: .entities[0].sourceID}'
# {"name":"Dmitry Yuryevich KHOROSHEV","match":1,"sourceID":"48603"}
That is OFAC SDN 48603. The passport is an identity key, so the score is 1.0 at minMatch=0.80. Full recipe: Using Watchman. Env vars: Configuration.
For an optional deepparse sidecar used in tests and examples:
make setup-deepparse
The same name without an ID is below the screening line. Date of birth clears it; the passport is 1.0:
# Name only — empty at minMatch=0.80
curl -s "http://localhost:8084/v2/search?type=person&name=Dmitry+Khoroshev&minMatch=0.80&limit=1" | jq .entities
# []
# Name + date of birth
curl -s "http://localhost:8084/v2/search?type=person&name=Dmitry+Khoroshev&birthDate=1993-04-17&minMatch=0.80&limit=1" \
| jq '{name: .entities[0].name, match: (.entities[0].match*1000|round/1000)}'
# {"name":"Dmitry Yuryevich KHOROSHEV","match":0.867}
Each result is the list record with match on the same object.
Slim image
moov/watchman:slim (and moov/watchman:<version>-slim) is the same Watchman server without libpostal, postal-server, or the ~3GB address models. Address parsing defaults to usaddress.
The image copies configs/config.slim.yml to /configs/config.slim.yml. That overlay leaves PostalPool off and includes a commented deepparse block.
Local slim image:
make setup-slim
That builds the slim image and runs Watchman with APP_CONFIG=/configs/config.slim.yml.
A remote deepparse sidecar keeps those models off the Watchman image. Enable it in an overlay and point DEEPPARSE_URL at the sidecar (make setup-deepparse or another host):
Watchman:
Deepparse:
Enabled: true
docker run -p 8084:8084 \
-e INCLUDED_LISTS=us_ofac \
-v ./deepparse.yml:/configs/deepparse.yml \
-e APP_CONFIG=/configs/deepparse.yml \
-e DEEPPARSE_URL=http://host.docker.internal:8000 \
moov/watchman:slim
Point embeddings at a remote provider with the same Search.Embeddings keys as the default config (EMBEDDINGS_ENABLED, EMBEDDINGS_BASE_URL, EMBEDDINGS_MODEL). See Configuration.