{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c8fe54b6-e8ae-4aad-b89e-f2e23f26681c",
    "slug": "miniflux-with-postgresql",
    "name": "miniflux-with-postgresql",
    "description": "Deploy Miniflux with PostgreSQL in one click on Railway.",
    "url": "https://railway.com/deploy/miniflux-with-postgresql",
    "upstream": {
      "repo_url": "https://github.com/20040608/Synthetic_Time"
    }
  },
  "services": [
    {
      "name": "miniflux",
      "source": {
        "repo": "https://github.com/20040608/Synthetic_Time"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "repo": "https://github.com/20040608/Synthetic_Time"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "BASE_URL",
      "service": "miniflux",
      "description": "Public URL where the Miniflux application is accessible.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "miniflux",
      "description": "PostgreSQL connection string used by Miniflux.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "miniflux",
      "description": "Password for the initial Miniflux administrator account.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Password for the PostgreSQL database user.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "miniflux-with-postgresql"
      }
    },
    "cli": "railway deploy --template miniflux-with-postgresql",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c8fe54b6-e8ae-4aad-b89e-f2e23f26681c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "d70dd4ed-9ec6-4119-aca6-99a9ba34f71d": {
                  "icon": null,
                  "name": "miniflux",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "repo": "https://github.com/20040608/Synthetic_Time",
                    "rootDirectory": "/templates/miniflux-postgres"
                  },
                  "variables": {
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL where the Miniflux application is accessible.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string used by Miniflux.",
                      "defaultValue": "postgresql://miniflux:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/miniflux?sslmode=disable"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the initial Miniflux administrator account.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "dd566166-deb8-4f95-9ef1-415b674fb884": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "repo": "https://github.com/20040608/Synthetic_Time",
                    "rootDirectory": "/templates/miniflux-postgres/postgres"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the PostgreSQL database user.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "dd566166-deb8-4f95-9ef1-415b674fb884": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "miniflux",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T19:36:35.303Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_c9f8b33163124164a654",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "BUILDING,FAILED"
      }
    ]
  }
}
