<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Docker Compose on</title><link>https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/</link><description>Recent content in Docker Compose on</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 06 Apr 2026 11:47:24 +0000</lastBuildDate><atom:link href="https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker Compose Deployment</title><link>https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/deployment/</link><pubDate>Tue, 20 Feb 2024 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/deployment/</guid><description>&lt;h2 id="prerequisites">Prerequisites&lt;/h2>
&lt;ul>
&lt;li>
&lt;p>The &lt;a href="https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/obtaining_package/">Deployment Package&lt;/a> provided by Protegrity is obtained from the portal and extracted.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://docs.docker.com/reference/cli/docker/">Docker CLI&lt;/a> version greater than or equal to 28.3.0 is installed. This is required for managing Docker containers.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://docs.docker.com/compose">Docker Compose&lt;/a> version greater than or equal to 2.37.3 is installed. This is required for local containerized deployments.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>Docker Compose v2 that uses the &lt;code>docker compose&lt;/code> command syntax. Ensure that the the installation supports this version.&lt;/p>&lt;/blockquote>
&lt;blockquote>
&lt;p>For Apple Macbook users, refer &lt;a href="https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/deployment/#additional-notes">Additional Notes&lt;/a>.&lt;/p></description></item><item><title>Configuring Environment Variables</title><link>https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/docker_vbles/</link><pubDate>Tue, 20 Feb 2024 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/docker_vbles/</guid><description>&lt;p>Run the following steps to edit the environment variables:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Navigate to the &lt;code>docker_compose&lt;/code> directory.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Open the &lt;code>.env&lt;/code> file and set the following variables as required:&lt;/p>
&lt;/li>
&lt;/ol>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Variable&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;th>Required&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>DOCKER_CLASSIFICATION_IMAGE&lt;/td>
 &lt;td>Repository path where the docker image of Classification Service is stored.&lt;/td>
 &lt;td>Yes&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>DOCKER_PATTERN_PROVIDER_IMAGE&lt;/td>
 &lt;td>Repository path where the docker image of Pattern classification Service is stored.&lt;/td>
 &lt;td>Yes&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>DOCKER_CONTEXT_PROVIDER_IMAGE&lt;/td>
 &lt;td>Repository path where the docker image of Context clarification Service is stored.&lt;/td>
 &lt;td>Yes&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>DOCKER_NETWORK_NAME&lt;/td>
 &lt;td>Name of the Docker network.&lt;/td>
 &lt;td>No&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>PATTERN_PROVIDER_LOGGING_CONFIG&lt;/td>
 &lt;td>a valid JSON python logging configuration for the Pattern Classification Provider.&lt;/td>
 &lt;td>No&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>CONTEXT_PROVIDER_LOGGING_CONFIG&lt;/td>
 &lt;td>a valid JSON python logging configuration for the Context Classification Provider.&lt;/td>
 &lt;td>No&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>CLASSIFICATION_LOGGING_CONFIG&lt;/td>
 &lt;td>a valid JSON python logging configuration for the Classification Service.&lt;/td>
 &lt;td>No&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>ENABLE_ALL_SECURITY_CONTROLS&lt;/td>
 &lt;td>Controls whether security mitigations are enabled. Accepted values: true (default) or false&lt;/td>
 &lt;td>No&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;ol start="3">
&lt;li>Save the changes.&lt;/li>
&lt;/ol></description></item><item><title>Viewing Application Logs</title><link>https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/view_logs/</link><pubDate>Tue, 20 Feb 2024 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/view_logs/</guid><description>&lt;p>The application logs can be viewed using the following commands:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>docker logs -f classification_service
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>docker logs -f context_provider
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>docker logs -f pattern_provider
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="setting-the-log-level-and-other-logging-configuration">Setting the Log Level and other logging configuration&lt;/h2>
&lt;p>The log level and other valid &lt;a href="https://docs.python.org/3/library/logging.html">Python Logging&lt;/a> configuration can be set in the &lt;code>.env&lt;/code> file using JSON.&lt;/p>
&lt;p>Run the following steps to set the overall logging level.&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Navigate to the &lt;code>docker_compose&lt;/code> directory.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Edit the &lt;code>.env&lt;/code> file.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Uncomment the required logging configuration and set the logging level to one of the following:&lt;/p></description></item><item><title/><link>https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/dockerscript/indocker/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/dockerscript/indocker/</guid><description>&lt;p>When running commands from inside the Docker network (for example, from another container), use the service name directly. This leverages Docker&amp;rsquo;s internal DNS. e.g.,&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>curl -XPOST http://localhost:8050/pty/data-discovery/v1.1/classify --data &lt;span style="color:#4e9a06">&amp;#39;You can reach Dave Elliot by phone 203-555-1286&amp;#39;&lt;/span> -H &lt;span style="color:#4e9a06">&amp;#34;Content-Type: text/plain&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title/><link>https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/dockerscript/outdocker/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/data-discovery/1.1.0/docs/deploy/dockercompose/dockerscript/outdocker/</guid><description>&lt;p>When running command from outside the docker network, e.g., from your host machine, use the published port mapping. e.g.,&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>curl -XPOST classification_service/pty/data-discovery/v1.1/classify --data &lt;span style="color:#4e9a06">&amp;#39;You can reach Dave Elliot by phone 203-555-1286&amp;#39;&lt;/span> -H &lt;span style="color:#4e9a06">&amp;#34;Content-Type: text/plain&amp;#34;&lt;/span> 
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item></channel></rss>