{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5ab83a5e-8dab-4f66-9768-0e60676a6555",
    "slug": "nocodb-minio-console-and-storage",
    "name": "NocoDB 2026.10",
    "description": "Airtable alternative: NocoDB with Postgres and a Railway Bucket",
    "url": "https://railway.com/deploy/nocodb-minio-console-and-storage",
    "upstream": {
      "image": "nocodb/nocodb:2026.10.1"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "NocoDB",
      "source": {
        "image": "nocodb/nocodb:2026.10.1"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "NocoDB",
      "description": "Port NocoDB listens on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "NC_DB",
      "service": "NocoDB",
      "description": "Metadata database (private Postgres)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NC_SETUP_JS",
      "service": "NocoDB",
      "description": "Start-up script that switches sign-up to invite-only after the admin exists. Leave as is",
      "secret": false,
      "strategy": "default",
      "default": "// Closes open sign-up once the admin exists: logs in as NC_ADMIN_EMAIL and sets invite_only_signup.\nconst base = 'http://127.0.0.1:' + (process.env.PORT || 8080);\nconst sleep = (ms) => new Promise((r) => setTimeout(r, ms));\n(async () => {\n  for (let i = 0; i < 180; i++) {\n    try { const r = await fetch(base + '/api/v1/health'); if (r.ok) break; } catch (e) {}\n    await sleep(2000);\n  }\n  try {\n    const s = await fetch(base + '/api/v1/auth/user/signin', { method: 'POST', headers: { 'content-type': 'application/json' },\n      body: JSON.stringify({ email: process.env.NC_ADMIN_EMAIL, password: process.env.NC_ADMIN_PASSWORD }) });\n    if (!s.ok) { console.log('nocodb-setup: admin sign-in failed (' + s.status + '), invite-only not changed'); return; }\n    const { token } = await s.json();\n    const h = { 'content-type': 'application/json', 'xc-auth': token };\n    const cur = await (await fetch(base + '/api/v1/app-settings', { headers: h })).json();\n    if (cur.invite_only_signup) { console.log('nocodb-setup: sign-up already invite-only'); return; }\n    const u = await fetch(base + '/api/v1/app-settings', { method: 'POST', headers: h, body: JSON.stringify({ ...cur, invite_only_signup: true }) });\n    console.log('nocodb-setup: invite-only sign-up ' + (u.ok ? 'enabled' : 'NOT enabled (' + u.status + ')'));\n  } catch (e) { console.log('nocodb-setup: ' + e.message); }\n})();\n"
    },
    {
      "key": "NC_S3_REGION",
      "service": "NocoDB",
      "description": "Attachments: bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NC_PUBLIC_URL",
      "service": "NocoDB",
      "description": "Public URL, used in emails and links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NC_ADMIN_EMAIL",
      "service": "NocoDB",
      "description": "Email of the super admin created on first start. Change it before deploying; changing it later has no effect",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "NC_S3_ENDPOINT",
      "service": "NocoDB",
      "description": "Attachments: Railway Bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NC_DISABLE_TELE",
      "service": "NocoDB",
      "description": "Turn off NocoDB telemetry",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NC_S3_ACCESS_KEY",
      "service": "NocoDB",
      "description": "Attachments: bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NC_ADMIN_PASSWORD",
      "service": "NocoDB",
      "description": "Password of the super admin, generated. Read it in this variable after deploy",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NC_S3_BUCKET_NAME",
      "service": "NocoDB",
      "description": "Attachments: Railway Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NC_AUTH_JWT_SECRET",
      "service": "NocoDB",
      "description": "Signs login tokens. Generated",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NC_S3_ACCESS_SECRET",
      "service": "NocoDB",
      "description": "Attachments: bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NC_S3_FORCE_PATH_STYLE",
      "service": "NocoDB",
      "description": "Path-style S3 URLs",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NC_ATTACHMENT_EXPIRE_SECONDS",
      "service": "NocoDB",
      "description": "How long signed attachment links stay valid (seconds)",
      "secret": false,
      "strategy": "default",
      "default": "7200"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nocodb-minio-console-and-storage"
      }
    },
    "cli": "railway deploy --template nocodb-minio-console-and-storage",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5ab83a5e-8dab-4f66-9768-0e60676a6555",
            "serializedConfig": {
              "buckets": {
                "d5bec740-0ca7-42aa-9bf9-63e2a7845580": {
                  "name": "Bucket"
                }
              },
              "services": {
                "33ce795c-675f-40bb-938d-0bb7125f47fc": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/nocodb.svg",
                  "name": "NocoDB",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'printf %s \"$NC_SETUP_JS\" > /tmp/nc-setup.mjs; node /tmp/nc-setup.mjs & exec /usr/bin/dumb-init -- /usr/src/appEntry/start.sh'",
                    "healthcheckPath": "/api/v1/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "nocodb/nocodb:2026.10.1"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port NocoDB listens on",
                      "defaultValue": "8080"
                    },
                    "NC_DB": {
                      "isOptional": true,
                      "description": "Metadata database (private Postgres)",
                      "defaultValue": "pg://${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432?u=${{Postgres.PGUSER}}&p=${{Postgres.PGPASSWORD}}&d=${{Postgres.PGDATABASE}}"
                    },
                    "NC_SETUP_JS": {
                      "isOptional": true,
                      "description": "Start-up script that switches sign-up to invite-only after the admin exists. Leave as is",
                      "defaultValue": "// Closes open sign-up once the admin exists: logs in as NC_ADMIN_EMAIL and sets invite_only_signup.\nconst base = 'http://127.0.0.1:' + (process.env.PORT || 8080);\nconst sleep = (ms) => new Promise((r) => setTimeout(r, ms));\n(async () => {\n  for (let i = 0; i < 180; i++) {\n    try { const r = await fetch(base + '/api/v1/health'); if (r.ok) break; } catch (e) {}\n    await sleep(2000);\n  }\n  try {\n    const s = await fetch(base + '/api/v1/auth/user/signin', { method: 'POST', headers: { 'content-type': 'application/json' },\n      body: JSON.stringify({ email: process.env.NC_ADMIN_EMAIL, password: process.env.NC_ADMIN_PASSWORD }) });\n    if (!s.ok) { console.log('nocodb-setup: admin sign-in failed (' + s.status + '), invite-only not changed'); return; }\n    const { token } = await s.json();\n    const h = { 'content-type': 'application/json', 'xc-auth': token };\n    const cur = await (await fetch(base + '/api/v1/app-settings', { headers: h })).json();\n    if (cur.invite_only_signup) { console.log('nocodb-setup: sign-up already invite-only'); return; }\n    const u = await fetch(base + '/api/v1/app-settings', { method: 'POST', headers: h, body: JSON.stringify({ ...cur, invite_only_signup: true }) });\n    console.log('nocodb-setup: invite-only sign-up ' + (u.ok ? 'enabled' : 'NOT enabled (' + u.status + ')'));\n  } catch (e) { console.log('nocodb-setup: ' + e.message); }\n})();\n"
                    },
                    "NC_S3_REGION": {
                      "isOptional": true,
                      "description": "Attachments: bucket region",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "NC_PUBLIC_URL": {
                      "isOptional": true,
                      "description": "Public URL, used in emails and links",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NC_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email of the super admin created on first start. Change it before deploying; changing it later has no effect",
                      "defaultValue": "admin@example.com"
                    },
                    "NC_S3_ENDPOINT": {
                      "isOptional": true,
                      "description": "Attachments: Railway Bucket endpoint",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "NC_DISABLE_TELE": {
                      "isOptional": true,
                      "description": "Turn off NocoDB telemetry",
                      "defaultValue": "true"
                    },
                    "NC_S3_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Attachments: bucket access key",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "NC_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password of the super admin, generated. Read it in this variable after deploy",
                      "defaultValue": "{{NC_ADMIN_PASSWORD}}"
                    },
                    "NC_S3_BUCKET_NAME": {
                      "isOptional": true,
                      "description": "Attachments: Railway Bucket name",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "NC_AUTH_JWT_SECRET": {
                      "isOptional": true,
                      "description": "Signs login tokens. Generated",
                      "defaultValue": "{{NC_AUTH_JWT_SECRET}}"
                    },
                    "NC_S3_ACCESS_SECRET": {
                      "isOptional": true,
                      "description": "Attachments: bucket secret key",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "NC_S3_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Path-style S3 URLs",
                      "defaultValue": "true"
                    },
                    "NC_ATTACHMENT_EXPIRE_SECONDS": {
                      "isOptional": true,
                      "description": "How long signed attachment links stay valid (seconds)",
                      "defaultValue": "7200"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {}
                },
                "569c6f87-3371-4917-ac1b-81dac6f3b500": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "569c6f87-3371-4917-ac1b-81dac6f3b500": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "NocoDB",
      "method": "GET",
      "path": "/api/v1/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-11-08T22:15:11.842Z",
  "generator_version": "0.1.0"
}
