{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b3247cfa-b1eb-4534-af88-95f5ac84f52d",
    "slug": "commafeed",
    "name": "CommaFeed",
    "description": "Self-hosted RSS reader with PostgreSQL and private gateway access.",
    "url": "https://railway.com/deploy/commafeed",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "commafeed",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "app",
      "source": {
        "image": "athou/commafeed:7.3.2-postgresql@sha256:d6bc790a175c29ba5c3b37ccd71297ededc000615dbb7fe32e13d2df0592f95d"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17@sha256:f4c66b820c6f974249089d3d16d86a3698eae11e8746eb6644b2271031e91232"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "commafeed",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OWNER_AUTH",
      "service": "commafeed",
      "description": "Require owner authentication for every application route.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OWNER_SCOPE",
      "service": "commafeed",
      "description": "Protect all application routes.",
      "secret": false,
      "strategy": "default",
      "default": "all"
    },
    {
      "key": "UPSTREAM_HOST",
      "service": "commafeed",
      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPSTREAM_PORT",
      "service": "commafeed",
      "description": "Upstream port for commafeed. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "8082"
    },
    {
      "key": "ACCESS_PASSWORD",
      "service": "commafeed",
      "description": "Generated access password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "commafeed",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "shared/round6-gateway/Dockerfile"
    },
    {
      "key": "QUARKUS_HTTP_HOST",
      "service": "app",
      "description": "Quarkus http host for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "QUARKUS_HTTP_PORT",
      "service": "app",
      "description": "Quarkus http port for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "8082"
    },
    {
      "key": "QUARKUS_DATASOURCE_JDBC_URL",
      "service": "app",
      "description": "Quarkus datasource jdbc url resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUARKUS_DATASOURCE_PASSWORD",
      "service": "app",
      "description": "Quarkus datasource password resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUARKUS_DATASOURCE_USERNAME",
      "service": "app",
      "description": "Quarkus datasource username for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "commafeed"
    },
    {
      "key": "COMMAFEED_USERS_ALLOW_REGISTRATIONS",
      "service": "app",
      "description": "Commafeed users allow registrations for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "COMMAFEED_USERS_CREATE_DEMO_ACCOUNT",
      "service": "app",
      "description": "Commafeed users create demo account for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "COMMAFEED_USERS_MINIMUM_PASSWORD_LENGTH",
      "service": "app",
      "description": "Commafeed users minimum password length for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": true,
      "strategy": "default",
      "default": "12"
    },
    {
      "key": "QUARKUS_HTTP_AUTH_SESSION_ENCRYPTION_KEY",
      "service": "app",
      "description": "Generated quarkus http auth session encryption key. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "PostgreSQL data directory within the persistent volume. Do not change on an existing database.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Initial PostgreSQL database name, or the matching database selected by the application.",
      "secret": false,
      "strategy": "default",
      "default": "commafeed"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "PostgreSQL initialization user, or the matching connection user for the private database.",
      "secret": false,
      "strategy": "default",
      "default": "commafeed"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "PostgreSQL password. Generated for the database and referenced by dependent services; keep private.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "commafeed"
      }
    },
    "cli": "railway deploy --template commafeed",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b3247cfa-b1eb-4534-af88-95f5ac84f52d",
            "serializedConfig": {
              "services": {
                "336e7d54-5c02-5a32-874c-11e71d37c194": {
                  "name": "commafeed",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "shared/round6-gateway/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8080"
                    },
                    "OWNER_AUTH": {
                      "isOptional": false,
                      "description": "Require owner authentication for every application route.",
                      "defaultValue": "true"
                    },
                    "OWNER_SCOPE": {
                      "isOptional": false,
                      "description": "Protect all application routes.",
                      "defaultValue": "all"
                    },
                    "UPSTREAM_HOST": {
                      "isOptional": false,
                      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{app.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_PORT": {
                      "isOptional": false,
                      "description": "Upstream port for commafeed. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "8082"
                    },
                    "ACCESS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated access password. Keep private and preserve with backups.",
                      "defaultValue": "{{ACCESS_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "shared/round6-gateway/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {}
                },
                "3c3d4d4f-61d4-5e4b-bf21-16096198155c": {
                  "name": "app",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "athou/commafeed:7.3.2-postgresql@sha256:d6bc790a175c29ba5c3b37ccd71297ededc000615dbb7fe32e13d2df0592f95d"
                  },
                  "variables": {
                    "QUARKUS_HTTP_HOST": {
                      "isOptional": false,
                      "description": "Quarkus http host for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "0.0.0.0"
                    },
                    "QUARKUS_HTTP_PORT": {
                      "isOptional": false,
                      "description": "Quarkus http port for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "8082"
                    },
                    "QUARKUS_DATASOURCE_JDBC_URL": {
                      "isOptional": false,
                      "description": "Quarkus datasource jdbc url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "jdbc:postgresql://${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/commafeed"
                    },
                    "QUARKUS_DATASOURCE_PASSWORD": {
                      "isOptional": false,
                      "description": "Quarkus datasource password resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "QUARKUS_DATASOURCE_USERNAME": {
                      "isOptional": false,
                      "description": "Quarkus datasource username for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "commafeed"
                    },
                    "COMMAFEED_USERS_ALLOW_REGISTRATIONS": {
                      "isOptional": false,
                      "description": "Commafeed users allow registrations for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "false"
                    },
                    "COMMAFEED_USERS_CREATE_DEMO_ACCOUNT": {
                      "isOptional": false,
                      "description": "Commafeed users create demo account for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "false"
                    },
                    "COMMAFEED_USERS_MINIMUM_PASSWORD_LENGTH": {
                      "isOptional": false,
                      "description": "Commafeed users minimum password length for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "12"
                    },
                    "QUARKUS_HTTP_AUTH_SESSION_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Generated quarkus http auth session encryption key. Keep private and preserve with backups.",
                      "defaultValue": "{{QUARKUS_HTTP_AUTH_SESSION_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                },
                "f7c4ea1e-d4b0-5c91-a56f-555be8e77938": {
                  "name": "postgres",
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17@sha256:f4c66b820c6f974249089d3d16d86a3698eae11e8746eb6644b2271031e91232"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory within the persistent volume. Do not change on an existing database.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial PostgreSQL database name, or the matching database selected by the application.",
                      "defaultValue": "commafeed"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL initialization user, or the matching connection user for the private database.",
                      "defaultValue": "commafeed"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password. Generated for the database and referenced by dependent services; keep private.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "fce22db3-b075-5a94-ba1f-d1525bbeaff1": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "commafeed",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T08:00:33.743Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a430687f26c446918202",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 83,
    "typical_build_seconds": 20,
    "typical_start_seconds": 0,
    "slowest_service": "commafeed"
  }
}
