{
  "manifest_version": "1.0.0",
  "template": {
    "id": "472ea012-948c-4b3a-8723-3d07501509ac",
    "slug": "pgvector-railway",
    "name": "pgvector",
    "description": "Pinecone Alternative. Database for embeddings, search and AI agents",
    "url": "https://railway.com/deploy/pgvector-railway",
    "upstream": {
      "image": "pgvector/pgvector:0.8.6-pg18"
    }
  },
  "services": [
    {
      "name": "pgvector",
      "source": {
        "image": "pgvector/pgvector:0.8.6-pg18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "pgvector",
      "description": "PG18 data directory under volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/18/docker"
    },
    {
      "key": "BOOT_SH",
      "service": "pgvector",
      "description": "Container-aware tuning and TLS script",
      "secret": false,
      "strategy": "default",
      "default": "<boot script>"
    },
    {
      "key": "APP_DB_USER",
      "service": "pgvector",
      "description": "Least-privilege application role",
      "secret": false,
      "strategy": "default",
      "default": "app"
    },
    {
      "key": "POSTGRES_DB",
      "service": "pgvector",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "pgvector",
      "description": "Private app connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "pgvector",
      "description": "Superuser role name",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "APP_DB_PASSWORD",
      "service": "pgvector",
      "description": "Application role password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "pgvector",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_ADMIN_URL",
      "service": "pgvector",
      "description": "Superuser string, private only",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "pgvector",
      "description": "Public TCP proxy string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_OVERLAP_SECONDS",
      "service": "pgvector",
      "description": "No overlapping containers per volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pgvector-railway"
      }
    },
    "cli": "railway deploy --template pgvector-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "472ea012-948c-4b3a-8723-3d07501509ac",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "c510f715-d31f-4f09-816c-cbf48001538b": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgres.svg",
                  "name": "pgvector",
                  "deploy": {
                    "startCommand": "/bin/bash -c 'printf \"%s\" \"$BOOT_SH\" > /tmp/boot.sh && exec bash /tmp/boot.sh'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:0.8.6-pg18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PG18 data directory under volume",
                      "defaultValue": "/var/lib/postgresql/18/docker"
                    },
                    "BOOT_SH": {
                      "isOptional": false,
                      "description": "Container-aware tuning and TLS script",
                      "defaultValue": "<boot script>"
                    },
                    "APP_DB_USER": {
                      "isOptional": false,
                      "description": "Least-privilege application role",
                      "defaultValue": "app"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private app connection string",
                      "defaultValue": "postgresql://${{APP_DB_USER}}:${{APP_DB_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser role name",
                      "defaultValue": "postgres"
                    },
                    "APP_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Application role password",
                      "defaultValue": "{{APP_DB_PASSWORD}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_ADMIN_URL": {
                      "isOptional": false,
                      "description": "Superuser string, private only",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{POSTGRES_DB}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public TCP proxy string",
                      "defaultValue": "postgresql://${{APP_DB_USER}}:${{APP_DB_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{POSTGRES_DB}}?sslmode=require"
                    },
                    "RAILWAY_DEPLOYMENT_OVERLAP_SECONDS": {
                      "isOptional": false,
                      "description": "No overlapping containers per volume",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "c510f715-d31f-4f09-816c-cbf48001538b": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T14:14:27.960Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_0650189523934b409f4f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 122,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "pgvector"
  }
}
