{
  "manifest_version": "1.0.0",
  "template": {
    "id": "adedaae3-a444-4df6-8e66-32a64b497df8",
    "slug": "household-envelope-budget-with-actual",
    "name": "Household Envelope Budget with Actual",
    "description": "A protected Actual Budget sync server with persistent budget files.",
    "url": "https://railway.com/deploy/household-envelope-budget-with-actual",
    "upstream": {
      "image": "caddy@sha256:d8542f48d34a9cf4e4c11a478865229840e87e4c96ea3f439101f31a5d35f75f"
    }
  },
  "services": [
    {
      "name": "Gateway",
      "source": {
        "image": "caddy@sha256:d8542f48d34a9cf4e4c11a478865229840e87e4c96ea3f439101f31a5d35f75f"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "App",
      "source": {
        "image": "actualbudget/actual-server@sha256:24645e971da6bb1a1f953d6859e307a0b29be1e8b4130a35b3220c209b5b860c"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Gateway",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "UPSTREAM",
      "service": "Gateway",
      "description": "Provide a value for UPSTREAM.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GATEWAY_PASSWORD",
      "service": "Gateway",
      "description": "Gateway username is operator. Retrieve the generated password in Railway variables.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "App",
      "description": "Provide a value for TZ.",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "App",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5006"
    },
    {
      "key": "ACTUAL_PORT",
      "service": "App",
      "description": "Provide a value for ACTUAL_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5006"
    },
    {
      "key": "ACTUAL_HOSTNAME",
      "service": "App",
      "description": "Provide a value for ACTUAL_HOSTNAME.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "ACTUAL_UPLOAD_FILE_SIZE_LIMIT_MB",
      "service": "App",
      "description": "Provide a value for ACTUAL_UPLOAD_FILE_SIZE_LIMIT_MB.",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "ACTUAL_UPLOAD_SYNC_ENCRYPTED_FILE_SYNC_SIZE_LIMIT_MB",
      "service": "App",
      "description": "Provide a value for ACTUAL_UPLOAD_SYNC_ENCRYPTED_FILE_SYNC_SIZE_LIMIT_MB.",
      "secret": false,
      "strategy": "default",
      "default": "50"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "household-envelope-budget-with-actual"
      }
    },
    "cli": "railway deploy --template household-envelope-budget-with-actual",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "adedaae3-a444-4df6-8e66-32a64b497df8",
            "serializedConfig": {
              "services": {
                "13122806-b3df-5ea3-b6db-fec63e08c59a": {
                  "name": "Gateway",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'set -eu; hash=$(caddy hash-password --plaintext \"$GATEWAY_PASSWORD\"); printf \"{\\n admin off\\n auto_https off\\n}\\n:8080 {\\n header X-Robots-Tag noindex\\n basic_auth {\\n operator %s\\n }\\n reverse_proxy %s {\\n header_up X-Forwarded-Proto https\\n }\\n}\\n\" \"$hash\" \"$UPSTREAM\" > /tmp/Caddyfile; exec caddy run --config /tmp/Caddyfile --adapter caddyfile'",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "caddy@sha256:d8542f48d34a9cf4e4c11a478865229840e87e4c96ea3f439101f31a5d35f75f"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "UPSTREAM": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "http://${{App.RAILWAY_PRIVATE_DOMAIN}}:5006"
                    },
                    "GATEWAY_PASSWORD": {
                      "isOptional": false,
                      "description": "Gateway username is operator. Retrieve the generated password in Railway variables.",
                      "defaultValue": "{{GATEWAY_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  }
                },
                "439c4ff6-6286-53cf-b39a-fd3fd9e85d68": {
                  "name": "App",
                  "deploy": {
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "actualbudget/actual-server@sha256:24645e971da6bb1a1f953d6859e307a0b29be1e8b4130a35b3220c209b5b860c"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "5006"
                    },
                    "ACTUAL_PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "5006"
                    },
                    "ACTUAL_HOSTNAME": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0.0.0.0"
                    },
                    "ACTUAL_UPLOAD_FILE_SIZE_LIMIT_MB": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "20"
                    },
                    "ACTUAL_UPLOAD_SYNC_ENCRYPTED_FILE_SYNC_SIZE_LIMIT_MB": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "50"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "f3588e56-690b-5fa6-b1b2-326696d6aa07": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-18T10:14:45.913Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-18T09:17:44.399Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6198ac58fc884f18b930",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 91,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Gateway"
  }
}
