{
  "$schema": "https://blueprints.servus.run/schema/servus-blueprint-v1.schema.json",
  "schemaVersion": "servus-blueprint/v1",
  "id": "nocodb",
  "name": "NocoDB",
  "tagline": "Open-source Airtable alternative over PostgreSQL",
  "description": "Smart spreadsheet and collaborative no-code database interface backed by PostgreSQL and Redis.",
  "category": "database",
  "tags": [
    "no-code",
    "spreadsheet",
    "database",
    "airtable"
  ],
  "version": "2026-12-03.1",
  "publisher": "NocoDB (Servus Blueprint)",
  "homepage": "https://nocodb.com",
  "docsUrl": "https://docs.nocodb.com",
  "sourceUrl": "https://github.com/nocodb/nocodb",
  "license": "AGPL-3.0",
  "setup": "Open the NocoDB URL to register the first super-admin user.",
  "inputs": [
    {
      "key": "disableTelemetry",
      "label": "Disable telemetry",
      "type": "boolean",
      "default": true,
      "group": "advanced"
    }
  ],
  "secrets": [
    {
      "key": "jwtSecret",
      "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": 8080,
      "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": "nc_data"
    },
    {
      "name": "database"
    }
  ],
  "networks": [
    {
      "name": "private",
      "internal": true
    }
  ],
  "services": [
    {
      "name": "app",
      "image": "nocodb/nocodb:0.262.5",
      "restart": "unless-stopped",
      "resources": {
        "cpus": 1,
        "memoryMb": 768
      },
      "environment": {
        "NC_AUTH_JWT_SECRET": "{{secrets.jwtSecret}}",
        "NC_DB": "pg://database:5432?u=nocodb&p={{secrets.dbPassword}}&d=nocodb",
        "NC_REDIS_URL": "redis://default:{{secrets.redisPassword}}@redis:6379",
        "NC_PUBLIC_URL": "{{domains.primary.url|http://localhost:8080}}",
        "NC_DISABLE_TELE": "{{inputs.disableTelemetry|true}}"
      },
      "volumes": [
        {
          "volume": "nc_data",
          "target": "/usr/app/data"
        }
      ],
      "networks": [
        "private"
      ],
      "dependsOn": [
        "database",
        "redis"
      ],
      "expose": [
        8080
      ],
      "healthcheck": {
        "test": [
          "CMD-SHELL",
          "wget -qO- http://127.0.0.1:8080/api/v1/health || exit 1"
        ],
        "interval": "30s",
        "timeout": "5s",
        "retries": 5
      }
    },
    {
      "name": "database",
      "image": "postgres:17-alpine",
      "restart": "unless-stopped",
      "resources": {
        "cpus": 1,
        "memoryMb": 512
      },
      "environment": {
        "POSTGRES_DB": "nocodb",
        "POSTGRES_USER": "nocodb",
        "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"
      ]
    }
  ]
}
