Philter® Docker Container
This page describes how to run Philter in a Docker container.
Cloud native images are available on the AWS, Azure, and Google Cloud marketplaces.
Running the Container
From DockerHub:
docker run -it -p 8080:8080 mtnfog/philter:latest
From AWS ECR public repository:
docker run -it -p 8080:8080 public.ecr.aws/b2z3u6g8/mtnfog/philter:latest
Configuring the Container
Configuration values can be passed to the container using environment variables. All of Philter’s settings can be specified as environment variables when running the container.
Sending Philter Requests to Filter Text
Once the container is started you can execute a filter request:
curl -k https://localhost:8080/api/filter --data "George Washington was president and his ssn was 123-45-6789." -H "Content-type: text/plain"
Or, to get a detailed response use the explain
endpoint:
curl -k https://localhost:8080/api/explain --data "George Washington was president and his ssn was 123-45-6789." -H "Content-type: text/plain"
Other example requests are available in the Philter User’s Guide Quick Start.