{
  "$schema": "https://blueprints.servus.run/schema/servus-blueprint-v1.schema.json",
  "schemaVersion": "servus-blueprint/v1",
  "id": "docmost",
  "name": "Docmost",
  "tagline": "Collaborative team wiki and real-time documentation",
  "description": "Open-source collaborative wiki and documentation platform with spaces, diagrams, PostgreSQL storage, and Redis realtime sync.",
  "category": "collaboration",
  "tags": [
    "wiki",
    "docs",
    "knowledge-base",
    "realtime"
  ],
  "version": "2026-12-03.1",
  "publisher": "Docmost (Servus Blueprint)",
  "homepage": "https://docmost.com",
  "docsUrl": "https://docmost.com/docs",
  "sourceUrl": "https://github.com/docmost/docmost",
  "license": "AGPL-3.0",
  "setup": "Open the web UI to complete workspace onboarding and create the administrator account.",
  "inputs": [
    {
      "key": "disableTelemetry",
      "label": "Disable anonymous telemetry",
      "type": "boolean",
      "default": true,
      "group": "advanced"
    }
  ],
  "secrets": [
    {
      "key": "appSecret",
      "format": "hex",
      "bytes": 32
    },
    {
      "key": "dbPassword",
      "format": "base64url",
      "bytes": 32
    },
    {
      "key": "redisPassword",
      "format": "base64url",
      "bytes": 24
    }
  ],
  "domains": [
    {
      "key": "primary",
      "label": "Application domain",
      "service": "app",
      "port": 3000,
      "primary": true
    }
  ],
  "profiles": [
    {
      "id": "compact",
      "label": "Compact",
      "services": {
        "app": {
          "cpus": 0.5,
          "memoryMb": 512
        },
        "database": {
          "cpus": 0.5,
          "memoryMb": 256
        },
        "redis": {
          "cpus": 0.25,
          "memoryMb": 128
        }
      }
    },
    {
      "id": "standard",
      "label": "Standard",
      "services": {
        "app": {
          "cpus": 1,
          "memoryMb": 768
        },
        "database": {
          "cpus": 1,
          "memoryMb": 512
        },
        "redis": {
          "cpus": 0.5,
          "memoryMb": 256
        }
      }
    },
    {
      "id": "performance",
      "label": "Performance",
      "services": {
        "app": {
          "cpus": 2,
          "memoryMb": 1536
        },
        "database": {
          "cpus": 2,
          "memoryMb": 1024
        },
        "redis": {
          "cpus": 0.5,
          "memoryMb": 512
        }
      }
    }
  ],
  "defaultProfile": "standard",
  "files": [],
  "volumes": [
    {
      "name": "storage"
    },
    {
      "name": "database"
    }
  ],
  "networks": [
    {
      "name": "private",
      "internal": true
    }
  ],
  "services": [
    {
      "name": "app",
      "image": "docmost/docmost:0.21.0",
      "restart": "unless-stopped",
      "resources": {
        "cpus": 1,
        "memoryMb": 768
      },
      "environment": {
        "APP_URL": "{{domains.primary.url|http://localhost:3000}}",
        "APP_SECRET": "{{secrets.appSecret}}",
        "DATABASE_URL": "postgresql://docmost:{{secrets.dbPassword}}@database:5432/docmost?schema=public",
        "REDIS_URL": "redis://default:{{secrets.redisPassword}}@redis:6379",
        "DISABLE_TELEMETRY": "{{inputs.disableTelemetry|true}}"
      },
      "volumes": [
        {
          "volume": "storage",
          "target": "/app/data/storage"
        }
      ],
      "networks": [
        "private"
      ],
      "dependsOn": [
        "database",
        "redis"
      ],
      "expose": [
        3000
      ]
    },
    {
      "name": "database",
      "image": "postgres:17-alpine",
      "restart": "unless-stopped",
      "resources": {
        "cpus": 1,
        "memoryMb": 512
      },
      "environment": {
        "POSTGRES_DB": "docmost",
        "POSTGRES_USER": "docmost",
        "POSTGRES_PASSWORD": "{{secrets.dbPassword}}"
      },
      "volumes": [
        {
          "volume": "database",
          "target": "/var/lib/postgresql/data"
        }
      ],
      "networks": [
        "private"
      ]
    },
    {
      "name": "redis",
      "image": "redis:7.4-alpine",
      "restart": "unless-stopped",
      "resources": {
        "cpus": 0.5,
        "memoryMb": 256
      },
      "command": [
        "redis-server",
        "--requirepass",
        "{{secrets.redisPassword}}"
      ],
      "networks": [
        "private"
      ]
    }
  ]
}
