{
  "id": "n8n-postgres",
  "name": "n8n (Postgres)",
  "slogan": "n8n backed by Postgres instead of its default SQLite file, for production workflow volumes.",
  "category": "Automation",
  "categorySlug": "automation",
  "tags": [
    "postgres",
    "multi-service"
  ],
  "license": {
    "spdx": "LicenseRef-n8n-SUL",
    "class": "source-available"
  },
  "memoryMiB": 1024,
  "architectures": {
    "amd64": "published",
    "arm64": "published"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install n8n-postgres --name my-n8n-postgres",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/n8n-postgres/",
  "docsUrl": "https://docs.n8n.io/hosting/installation/server-setups/postgresql/",
  "sourceRepo": "https://github.com/n8n-io/n8n",
  "markdownUrl": "https://levelrail.com/templates/n8n-postgres.md",
  "jsonUrl": "https://levelrail.com/templates/n8n-postgres.json",
  "indexable": true,
  "description": "n8n backed by Postgres instead of its default SQLite file, for production workflow volumes. Runs 2 containers (n8n, postgres), with n8n listening on port 5678 and keeps its data in named volumes.",
  "pinnedTag": "2.10.2",
  "licenseUrl": "https://github.com/n8n-io/n8n/blob/master/LICENSE.md",
  "licenseClassLabel": "Source available",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [],
  "services": [
    {
      "name": "n8n",
      "image": "n8nio/n8n",
      "tag": "2.10.2",
      "ports": [
        5678
      ],
      "volumes": [
        "n8n_postgres_data -> /home/node/.n8n"
      ]
    },
    {
      "name": "postgres",
      "image": "postgres",
      "tag": "16-alpine",
      "ports": [],
      "volumes": [
        "n8n_postgres_db_data -> /var/lib/postgresql/data"
      ]
    }
  ],
  "env": [
    {
      "service": "n8n",
      "name": "DB_POSTGRESDB_DATABASE",
      "kind": "preset"
    },
    {
      "service": "n8n",
      "name": "DB_POSTGRESDB_HOST",
      "kind": "preset"
    },
    {
      "service": "n8n",
      "name": "DB_POSTGRESDB_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "n8n",
      "name": "DB_POSTGRESDB_PORT",
      "kind": "preset"
    },
    {
      "service": "n8n",
      "name": "DB_POSTGRESDB_USER",
      "kind": "preset"
    },
    {
      "service": "n8n",
      "name": "DB_TYPE",
      "kind": "preset"
    },
    {
      "service": "n8n",
      "name": "N8N_ENCRYPTION_KEY",
      "kind": "generated"
    },
    {
      "service": "n8n",
      "name": "N8N_PORT",
      "kind": "preset"
    },
    {
      "service": "n8n",
      "name": "N8N_PROTOCOL",
      "kind": "preset"
    },
    {
      "service": "n8n",
      "name": "WEBHOOK_URL",
      "kind": "preset"
    },
    {
      "service": "postgres",
      "name": "POSTGRES_DB",
      "kind": "preset"
    },
    {
      "service": "postgres",
      "name": "POSTGRES_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "postgres",
      "name": "POSTGRES_USER",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates deploy n8n-postgres --name my-n8n-postgres",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  https://levelrail.example.com/api/v1/service-templates/n8n-postgres/deploy",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates deploy n8n-postgres --name my-n8n-postgres"
      },
      {
        "id": "api",
        "label": "API",
        "lang": "bash",
        "code": "curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  https://levelrail.example.com/api/v1/service-templates/n8n-postgres/deploy",
        "note": "Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove."
      }
    ]
  }
}
