{
  "manifest_version": "1.0.0",
  "template": {
    "id": "82951d9b-a591-43e6-9f86-1a224656713d",
    "slug": "wallos-subscription-tracker",
    "name": "Wallos subscription tracker",
    "description": "Protected subscription tracking with persistent budgets and logos.",
    "url": "https://railway.com/deploy/wallos-subscription-tracker",
    "upstream": {
      "image": "caddy:2.11.4-alpine@sha256:5f5c8640aae01df9654968d946d8f1a56c497f1dd5c5cda4cf95ab7c14d58648"
    }
  },
  "services": [
    {
      "name": "Wallos Gateway",
      "source": {
        "image": "caddy:2.11.4-alpine@sha256:5f5c8640aae01df9654968d946d8f1a56c497f1dd5c5cda4cf95ab7c14d58648"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Wallos",
      "source": {
        "image": "bellamy/wallos:latest@sha256:316f26e13265958e7946ef98ff600516fddc51d698ee98bd1ae1577e5e00789f"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html/db",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Wallos Gateway",
      "description": "Public gateway listener.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "UPSTREAM",
      "service": "Wallos Gateway",
      "description": "Private Wallos endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GATEWAY_CONFIG",
      "service": "Wallos Gateway",
      "description": "Pinned full-application authentication policy.",
      "secret": false,
      "strategy": "default",
      "default": ":8080 {\n  handle /healthz {\n    rewrite * /health.php\n    reverse_proxy http://__UPSTREAM__\n  }\n  @protected not path /healthz\n  basic_auth @protected {\n    __USERNAME__ __PASSWORD_HASH__\n  }\n  handle {\n    reverse_proxy http://__UPSTREAM__ {\n      header_up -Authorization\n      header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto}\n    }\n  }\n}"
    },
    {
      "key": "GATEWAY_PASSWORD",
      "service": "Wallos Gateway",
      "description": "Generated password protecting the complete Wallos application.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GATEWAY_USERNAME",
      "service": "Wallos Gateway",
      "description": "Username protecting the complete Wallos application.",
      "secret": false,
      "strategy": "default",
      "default": "wallos"
    },
    {
      "key": "TZ",
      "service": "Wallos",
      "description": "Timezone used for recurring-payment jobs.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Wallos",
      "description": "Private Wallos HTTP listener.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "wallos-subscription-tracker"
      }
    },
    "cli": "railway deploy --template wallos-subscription-tracker",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "82951d9b-a591-43e6-9f86-1a224656713d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4db917a1-1d1b-49ab-92a7-c38cc94612da": {
                  "icon": null,
                  "name": "Wallos Gateway",
                  "deploy": {
                    "startCommand": "/bin/sh -ec 'password_hash=\"$(caddy hash-password --plaintext \"$GATEWAY_PASSWORD\")\"; printf \"%s\\n\" \"$GATEWAY_CONFIG\" | sed -e \"s|__USERNAME__|$GATEWAY_USERNAME|g\" -e \"s|__PASSWORD_HASH__|$password_hash|g\" -e \"s|__UPSTREAM__|$UPSTREAM|g\" >/tmp/Caddyfile; exec caddy run --config /tmp/Caddyfile --adapter caddyfile'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "caddy:2.11.4-alpine@sha256:5f5c8640aae01df9654968d946d8f1a56c497f1dd5c5cda4cf95ab7c14d58648"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public gateway listener.",
                      "defaultValue": "8080"
                    },
                    "UPSTREAM": {
                      "isOptional": false,
                      "description": "Private Wallos endpoint.",
                      "defaultValue": "${{Wallos.RAILWAY_PRIVATE_DOMAIN}}:80"
                    },
                    "GATEWAY_CONFIG": {
                      "isOptional": false,
                      "description": "Pinned full-application authentication policy.",
                      "defaultValue": ":8080 {\n  handle /healthz {\n    rewrite * /health.php\n    reverse_proxy http://__UPSTREAM__\n  }\n  @protected not path /healthz\n  basic_auth @protected {\n    __USERNAME__ __PASSWORD_HASH__\n  }\n  handle {\n    reverse_proxy http://__UPSTREAM__ {\n      header_up -Authorization\n      header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto}\n    }\n  }\n}"
                    },
                    "GATEWAY_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password protecting the complete Wallos application.",
                      "defaultValue": "{{GATEWAY_PASSWORD}}"
                    },
                    "GATEWAY_USERNAME": {
                      "isOptional": false,
                      "description": "Username protecting the complete Wallos application.",
                      "defaultValue": "wallos"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {}
                },
                "bdaf0382-6b91-4468-9c12-6bdf815b0ca2": {
                  "icon": null,
                  "name": "Wallos",
                  "deploy": {
                    "startCommand": "dumb-init -- /bin/sh -ec 'mkdir -p /var/www/html/db/logos /var/www/html/images/uploads; ln -sfn /var/www/html/db/logos /var/www/html/images/uploads/logos; exec /var/www/html/startup.sh'",
                    "healthcheckPath": "/health.php",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "bellamy/wallos:latest@sha256:316f26e13265958e7946ef98ff600516fddc51d698ee98bd1ae1577e5e00789f"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone used for recurring-payment jobs.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Private Wallos HTTP listener.",
                      "defaultValue": "80"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "bdaf0382-6b91-4468-9c12-6bdf815b0ca2": {
                      "sizeMB": 5000,
                      "mountPath": "/var/www/html/db"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Wallos Gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T19:10:48.025Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7fd8dfc0a4254dca85a8",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 134,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Wallos Gateway"
  }
}
