Data Discovery is currently in Private Preview and is not available for General Availability (GA). It should not be used in production environments, as features and functionality may change before the final GA release.
Docker Compose Deployment
Prerequisites
The Deployment Package provided by Protegrity is obtained from the portal and extracted.
Docker CLI version greater than or equal to 28.3.0 is installed. This is required for managing Docker containers.
Docker Compose version greater than or equal to 2.37.3 is installed. This is required for local containerized deployments.
Docker Compose v2 that uses the
docker composecommand syntax. Ensure that the the installation supports this version.
For Apple Macbook users, refer Additional Notes.
Starting the Containers
- If a Docker network does not exist, run the following command to create a Docker network.
docker network create protegrity-network
This step ensures that all services communicate with each other within the same Docker network.
- Run the following script to launch the services in detached mode.
docker compose up -d
The classification_service is exposed on port 8050.
Verifying the Deployment
When running command from outside the docker network, e.g., from your host machine, use the published port mapping. e.g.,
curl -XPOST classification_service/pty/data-discovery/v1.1/classify --data 'You can reach Dave Elliot by phone 203-555-1286' -H "Content-Type: text/plain"
When running commands from inside the Docker network (for example, from another container), use the service name directly. This leverages Docker’s internal DNS. e.g.,
curl -XPOST http://localhost:8050/pty/data-discovery/v1.1/classify --data 'You can reach Dave Elliot by phone 203-555-1286' -H "Content-Type: text/plain"
Stopping the Containers
Run the following script to stop, remove the Docker services. Also, remove the created Docker network created.
docker compose downTo remove a Docker network that has been created, run the following command:
docker network rm protegrity-network
Additional Notes
For Apple users running containers on Apple Silicon (M1/M2/M3/M4).
For Docker Desktop on a MacBook.
- Open Docker Desktop.
- Navigate to Settings > General.
- Enable Use Virtualization Framework and Use Rosetta for x86/amd64 emulation on Apple Silicon.
- Click Apply & Restart.
For Colima. Start Colima using Rosetta and Apple’s virtualization framework:
colima start --vm-type vz --vz-rosetta