{
  "$schema": "https://blueprints.servus.run/schema/servus-blueprint-v1.schema.json",
  "schemaVersion": "servus-blueprint/v1",
  "id": "ghost",
  "name": "Ghost",
  "tagline": "Modern publishing, memberships, and newsletters on MySQL",
  "description": "Independent publishing platform with themes, memberships, MySQL 8 database, and structured production JSON configuration.",
  "category": "cms",
  "tags": [
    "blog",
    "publishing",
    "memberships",
    "mysql"
  ],
  "version": "2026-12-03.1",
  "publisher": "Ghost Foundation (Servus Blueprint)",
  "icon": "ghost",
  "homepage": "https://ghost.org",
  "docsUrl": "https://ghost.org/docs/",
  "sourceUrl": "https://github.com/TryGhost/Ghost",
  "license": "MIT",
  "setup": "Visit /ghost on your domain to create the publisher owner account.",
  "inputs": [
    {
      "key": "mailTransport",
      "label": "Mail transport",
      "type": "select",
      "default": "Direct",
      "options": [
        {
          "value": "Direct",
          "label": "Direct"
        },
        {
          "value": "Console",
          "label": "Console (Local testing)"
        }
      ],
      "group": "advanced"
    },
    {
      "key": "privacyUseRpcPing",
      "label": "Enable search engine RPC ping",
      "type": "boolean",
      "default": false,
      "group": "advanced"
    }
  ],
  "secrets": [
    {
      "key": "dbPassword",
      "format": "base64url",
      "bytes": 32
    },
    {
      "key": "dbRootPassword",
      "format": "base64url",
      "bytes": 32
    }
  ],
  "domains": [
    {
      "key": "primary",
      "label": "Publication domain",
      "service": "app",
      "port": 2368,
      "primary": true
    }
  ],
  "profiles": [
    {
      "id": "compact",
      "label": "Compact",
      "services": {
        "app": {
          "cpus": 0.5,
          "memoryMb": 512
        },
        "database": {
          "cpus": 0.5,
          "memoryMb": 512
        }
      }
    },
    {
      "id": "standard",
      "label": "Standard",
      "services": {
        "app": {
          "cpus": 1,
          "memoryMb": 768
        },
        "database": {
          "cpus": 1,
          "memoryMb": 768
        }
      }
    },
    {
      "id": "performance",
      "label": "Performance",
      "services": {
        "app": {
          "cpus": 2,
          "memoryMb": 1536
        },
        "database": {
          "cpus": 2,
          "memoryMb": 1536
        }
      }
    }
  ],
  "defaultProfile": "standard",
  "files": [
    {
      "key": "ghost_config",
      "service": "app",
      "target": "/var/lib/ghost/config.production.json",
      "mode": 292,
      "content": "{\n  \"url\": \"{{domains.primary.url|http://localhost:2368}}\",\n  \"server\": { \"port\": 2368, \"host\": \"0.0.0.0\" },\n  \"mail\": { \"transport\": \"{{inputs.mailTransport|Direct}}\" },\n  \"privacy\": { \"useRpcPing\": {{inputs.privacyUseRpcPing|false}}, \"useUpdateCheck\": false },\n  \"logging\": { \"transports\": [\"stdout\"] },\n  \"paths\": { \"contentPath\": \"/var/lib/ghost/content\" }\n}\n"
    }
  ],
  "volumes": [
    {
      "name": "content"
    },
    {
      "name": "database"
    }
  ],
  "networks": [
    {
      "name": "private",
      "internal": true
    }
  ],
  "services": [
    {
      "name": "app",
      "image": "ghost:5.110.2-alpine",
      "restart": "unless-stopped",
      "resources": {
        "cpus": 1,
        "memoryMb": 768
      },
      "environment": {
        "NODE_ENV": "production",
        "url": "{{domains.primary.url|http://localhost:2368}}",
        "database__client": "mysql",
        "database__connection__host": "database",
        "database__connection__user": "ghost",
        "database__connection__password": "{{secrets.dbPassword}}",
        "database__connection__database": "ghost"
      },
      "volumes": [
        {
          "volume": "content",
          "target": "/var/lib/ghost/content"
        }
      ],
      "networks": [
        "private"
      ],
      "dependsOn": [
        "database"
      ],
      "expose": [
        2368
      ]
    },
    {
      "name": "database",
      "image": "mysql:8.4.4",
      "restart": "unless-stopped",
      "resources": {
        "cpus": 1,
        "memoryMb": 768
      },
      "environment": {
        "MYSQL_DATABASE": "ghost",
        "MYSQL_USER": "ghost",
        "MYSQL_PASSWORD": "{{secrets.dbPassword}}",
        "MYSQL_ROOT_PASSWORD": "{{secrets.dbRootPassword}}"
      },
      "volumes": [
        {
          "volume": "database",
          "target": "/var/lib/mysql"
        }
      ],
      "networks": [
        "private"
      ]
    }
  ]
}
