{
  "$schema": "https://blueprints.servus.run/schema/servus-blueprint-v1.schema.json",
  "schemaVersion": "servus-blueprint/v1",
  "id": "planka",
  "name": "Planka",
  "tagline": "Realtime Kanban boards for product and project teams",
  "description": "Open-source Kanban workspace with boards, lists, cards, labels, time tracking, comments, and PostgreSQL persistence.",
  "category": "project-management",
  "tags": [
    "kanban",
    "boards",
    "projects",
    "collaboration"
  ],
  "version": "2026-12-03.1",
  "publisher": "Planka (Servus Blueprint)",
  "icon": "planka",
  "homepage": "https://planka.app",
  "docsUrl": "https://docs.planka.cloud",
  "sourceUrl": "https://github.com/plankanban/planka",
  "license": "AGPL-3.0",
  "setup": "Sign in with the configured administrator email and password once the deployment is healthy.",
  "inputs": [
    {
      "key": "adminEmail",
      "label": "Administrator email",
      "type": "email",
      "required": true,
      "default": "admin@example.com",
      "placeholder": "admin@example.com"
    },
    {
      "key": "adminUsername",
      "label": "Administrator username",
      "type": "text",
      "required": true,
      "default": "admin",
      "min": 3,
      "max": 32,
      "pattern": "^[a-zA-Z0-9_.-]+$"
    },
    {
      "key": "adminName",
      "label": "Administrator display name",
      "type": "text",
      "required": true,
      "default": "Workspace Admin",
      "min": 1,
      "max": 80
    },
    {
      "key": "adminPassword",
      "label": "Administrator password",
      "description": "Leave empty to generate a strong random password automatically.",
      "type": "password",
      "secret": true,
      "placeholder": "Auto-generated if blank"
    }
  ],
  "secrets": [
    {
      "key": "dbPassword",
      "format": "base64url",
      "bytes": 32
    },
    {
      "key": "secretKey",
      "format": "hex",
      "bytes": 32
    },
    {
      "key": "generatedAdminPassword",
      "format": "alphanumeric",
      "bytes": 20
    }
  ],
  "domains": [
    {
      "key": "primary",
      "label": "Application domain",
      "service": "app",
      "port": 1337,
      "primary": true
    }
  ],
  "profiles": [
    {
      "id": "compact",
      "label": "Compact",
      "description": "Small team workspace",
      "services": {
        "app": {
          "cpus": 0.5,
          "memoryMb": 384
        },
        "database": {
          "cpus": 0.5,
          "memoryMb": 256
        }
      }
    },
    {
      "id": "standard",
      "label": "Standard",
      "description": "Recommended allocation for daily board collaboration",
      "services": {
        "app": {
          "cpus": 1,
          "memoryMb": 512
        },
        "database": {
          "cpus": 1,
          "memoryMb": 512
        }
      }
    },
    {
      "id": "performance",
      "label": "Performance",
      "description": "Higher concurrency with frequent file attachments",
      "services": {
        "app": {
          "cpus": 2,
          "memoryMb": 1024
        },
        "database": {
          "cpus": 2,
          "memoryMb": 1024
        }
      }
    }
  ],
  "defaultProfile": "standard",
  "files": [],
  "volumes": [
    {
      "name": "planka_config"
    },
    {
      "name": "database"
    }
  ],
  "networks": [
    {
      "name": "private",
      "internal": true
    }
  ],
  "services": [
    {
      "name": "app",
      "image": "lscr.io/linuxserver/planka:2.3.1",
      "restart": "unless-stopped",
      "resources": {
        "cpus": 1,
        "memoryMb": 512
      },
      "environment": {
        "TRUST_PROXY": "true",
        "BASE_URL": "{{domains.primary.url|http://localhost:1337}}",
        "DATABASE_URL": "postgresql://planka:{{secrets.dbPassword}}@database:5432/planka",
        "SECRET_KEY": "{{secrets.secretKey}}",
        "DEFAULT_ADMIN_EMAIL": "{{inputs.adminEmail|admin@example.com}}",
        "DEFAULT_ADMIN_USERNAME": "{{inputs.adminUsername|admin}}",
        "DEFAULT_ADMIN_PASSWORD": [
          {
            "value": "{{inputs.adminPassword}}",
            "when": {
              "inputTruthy": "adminPassword"
            }
          },
          {
            "value": "{{secrets.generatedAdminPassword}}"
          }
        ],
        "DEFAULT_ADMIN_NAME": "{{inputs.adminName|Workspace Admin}}"
      },
      "volumes": [
        {
          "volume": "planka_config",
          "target": "/config"
        }
      ],
      "networks": [
        "private"
      ],
      "dependsOn": [
        "database"
      ],
      "expose": [
        1337
      ]
    },
    {
      "name": "database",
      "image": "postgres:17-alpine",
      "restart": "unless-stopped",
      "resources": {
        "cpus": 1,
        "memoryMb": 512
      },
      "environment": {
        "POSTGRES_DB": "planka",
        "POSTGRES_USER": "planka",
        "POSTGRES_PASSWORD": "{{secrets.dbPassword}}"
      },
      "volumes": [
        {
          "volume": "database",
          "target": "/var/lib/postgresql/data"
        }
      ],
      "networks": [
        "private"
      ]
    }
  ]
}
