{
  "manifest_version": "1.0.0",
  "template": {
    "id": "374fdc7d-b290-4e76-8a4e-508693247147",
    "slug": "postgres-16-or-any-version",
    "name": "Postgres 16 or Any Version",
    "description": "Choose tag Postgres version and deploy - default 16",
    "url": "https://railway.com/deploy/postgres-16-or-any-version",
    "upstream": {
      "repo_url": "https://github.com/feliperosenek/postgres-any-version-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres 16",
      "source": {
        "repo": "https://github.com/feliperosenek/postgres-any-version-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_DB",
      "service": "Postgres 16",
      "description": "PSQL Database",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres 16",
      "description": "PSQL User Database",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "POSTGRES_VERSION",
      "service": "Postgres 16",
      "description": "PSQL Version Install",
      "secret": false,
      "strategy": "default",
      "default": "16"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres 16",
      "description": "PSQL Password Database",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postgres-16-or-any-version"
      }
    },
    "cli": "railway deploy --template postgres-16-or-any-version",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "374fdc7d-b290-4e76-8a4e-508693247147",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "13b04062-cc0a-4ce9-802d-f88685554613": {
                  "icon": "https://devicons.railway.com/i/postgres.svg",
                  "name": "Postgres 16",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/feliperosenek/postgres-any-version-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "PSQL Database",
                      "defaultValue": "{{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PSQL User Database",
                      "defaultValue": "{{POSTGRES_USER}}"
                    },
                    "POSTGRES_VERSION": {
                      "isOptional": false,
                      "description": "PSQL Version Install",
                      "defaultValue": "16"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PSQL Password Database",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "13b04062-cc0a-4ce9-802d-f88685554613": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0"
}
