---
title: "Polarity Server v5 File System Layout &amp; Directory Structure"
slug: "polarity-server-file-system-layout"
description: "Learn the Polarity Server v5 file system layout and directory structure for Docker or Podman deployment. Understand where configuration files, logs, data, and integration files are stored to properly manage and troubleshoot your server installation."
updated: 2025-08-28T19:47:39Z
published: 2025-08-28T19:47:39Z
canonical: "knowledge.threatconnect.com/polarity-server-file-system-layout"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.threatconnect.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Server File System Layout

If installing the Polarity Server onto a single server (ie. single instance), we recommend separate partitions for the various components from your Operating System (OS) partition (see [Default Mount Points](/v1/docs/server-file-system-layout#default-mount-points) below). In addition, we recommend placing your system audit logs (found by default in `/var/logs/audit`) into their own partition so that in the event application logs fill up your OS partition, the system audit logs can continue to be written.

In general, we recommend a mirrored (RAID 1) setup for your OS partition, and a RAID 10 (1+0) setup for your database partition. The size of the partitions and the types of disks used will depend on the number of simultaneous users you expect to be connected as well as the amount of data (tag, entities, and comments) that you expect to store directly in Polarity.

For the PostgreSQL partition we recommend sizing the disks so that the total disk space is equal to the required space for your data plus 30% for the overhead of Postgres logs, caches, and other database operations. We recommend the use of SSD-type drives over spinning disks to ensure adequate performance.

## Important File System Locations

### Log File Locations

| **Software** | **Directory** | **Filename** |
| --- | --- | --- |
| Polarity Platform | `/var/lib/docker/containers/&lt;platform_container_name&gt;` | `&lt;platform_container_name&gt;-json.log` |
| Polarity Integrations | `/app/integrations/&lt;integration_name&gt;/logs` | `integration.log` |
| Polarity Web | `/var/lib/docker/containers/&lt;web_container_name&gt;` | `&lt;web_container_name&gt;-json.log` |
| Redis Caches & OS | `/var/log` | `messages` |
| PostgreSQL | `/var/lib/pgsql/&lt;version&gt;/data/logs` | `Postgresql-&lt;day&gt;.log` |
| System Audit | `/var/log/audit` | `audit.log` |

### Default File System Locations

| **Location** | **Description** |
| --- | --- |
| `/app` | Contains Polarity Software |
| `/app/caddy` | Contains Polarity Web Configurations |
| `/app/certs/polarity.pem/app/caddy/config/server.crt` | SSL Public Key Certificate |
| `/app/certs/polarity_key.pem/app/caddy/config/server.key` | SSL Private Key Certificate |
| `/app/certs/ca/&lt;CA_public_key{{.crt\|\|.pem}}&gt;` | Certificate Authority Public Keys (may be multiple files) |
| `/var/lib/pgsql/{{13\|\|15}}/data` | PostgreSQL configuration and database data (if running as a service and not as a container) |
| `/var/lib/docker` | Contains Polarity Server container images |

### Default Mount Points

When installing Polarity software onto a single server (single instance), we recommend partitioning the server with XFS formatting on separate volumes, as described below.

| **Purpose** | **Mount Point** | **Recommended Minimum Size** |
| --- | --- | --- |
| Operating system | `/` | 20 GB |
| Docker containers | `/var/lib/docker` | 40 GB |
| Polarity Server software | `/app` | 40 GB |
| System logs | `/var/log` | 25 GB |
| PostgreSQL server (if installed as a service) | `/var/lib/pgsql` | 40 GB |
