If you are beginning your journey with Senzing, please start with Senzing Quick Start guides.
You are in the Senzing Garage where projects are "tinkered" on. Although this GitHub repository may help you understand an approach to using Senzing, it's not considered to be "production ready" and is not considered to be part of the Senzing product. Heck, it may not even be appropriate for your application of Senzing!
Using Docker compose, bring up a Docker compose formation for demonstrating Senzing.
-
TL;DR - A Simple example
-
Prerequisites:
-
Download docker-compose file:
curl -O https://raw.githubusercontent.com/senzing-garage/docker-compose-demo/refs/heads/main/docker-compose/senzing-docker-compose-postgresql.yamlAlternatively, use a web browser to download senzing-docker-compose-postgresql.yaml.
-
Bring up the docker-compose formation:
docker compose --profile truthset --file senzing-docker-compose-postgresql.yaml up --pull always -
In a separate terminal, exec into the
senzingsdk-toolscontainer:docker exec -it senzingsdk-tools /bin/bash
-
-
In addition to the TL;DR, this repository contains a multitude of docker-compose.yaml files in the docker-compose directory. Variations:
Variation Example filename database senzing-docker-compose-<database>.yamlmulti use senzing-docker-compose-<database>-multi.yamlFor step-by-step instructions, see Examples.
This demonstration runs on platforms that support docker and docker-compose.
docker and docker-compose
do not run in a RedHat Enterprise Linux 8 environment natively.
Likewise, docker is not a CentOS 8 supported project.
Although with user-modification it has been shown that docker and docker-compose can run in these environments,
the onus is on the user for proper operation of docker and docker networking.
-
✏️ Identify the file to be downloaded. Choose from the files in the docker-compose directory.
Example:
export SENZING_TOOLS_DOCKER_COMPOSE_FILE=senzing-docker-compose-postgresql.yaml -
Download the docker-compose file.
curl -O https://raw.githubusercontent.com/senzing-garage/docker-compose-demo/refs/heads/main/docker-compose/${SENZING_TOOLS_DOCKER_COMPOSE_FILE} -
Bring up Docker compose formation.
docker-compose --profile new --file ${SENZING_TOOLS_DOCKER_COMPOSE_FILE} up --pull always-
--profileThe --profile parameter specifies which variation of the docker-compose formation to bring up. Not all profiles exist for each docker-compose
.yamlfile.Profile Description new New formation with empty Senzing datastore. resume Resume a prior docker-compose formation. truthset New formation with Senzing TruthSets installed. For more information, see Profiles.
-
--fileThe --file parameter specifies the file containing the docker-compose YAML specification.
-
--pull alwaysThe optional --pull always parameter pulls the latest version of the Docker images before running. Omit the --pull always parameter if using the currently cached Docker images is preferred.
-
-
Work with Docker compose formation. See Services section.
-
Bring down Docker formation.
docker-compose --profile new --file ${SENZING_TOOLS_DOCKER_COMPOSE_FILE} down --volumes-
--volumesThe optional --volumes parameter cleans up the volumes. Omit the --volumes parameter if the data is to be reused via --profile resume.
-
See Services for services rendered by each docker compose formation.