Philter® Docker Containers
This page describes how to run Philter in Docker containers. Click here for turnkey Philter cloud images on AWS, Azure, and Google Cloud.
Getting the Container
The Philter Docker container is stored in our Docker registry at docker.mtnfog.com
. For access to this registry please contact us.
Philter can be launched in a Docker container using the commands below:
docker login docker.mtnfog.com docker pull docker.mtnfog.com/philter/philter:latest docker logout
Running the Container
To run the container:
docker run -it -p 8080:8080 docker.mtnfog.com/philter/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 Filter Requests
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.