{
  "manifest_version": "1.0.0",
  "template": {
    "id": "27b6cf32-5872-44d0-b40e-47a585e065bf",
    "slug": "actual-budget-railway",
    "name": "Actual Budget",
    "description": "YNAB Alternative. Local-first personal finance and budgeting",
    "url": "https://railway.com/deploy/actual-budget-railway",
    "upstream": {
      "image": "actualbudget/actual-server"
    }
  },
  "services": [
    {
      "name": "actual",
      "source": {
        "image": "actualbudget/actual-server"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "actual",
      "description": "HTTP listen port",
      "secret": false,
      "strategy": "default",
      "default": "5006"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "actual",
      "description": "Cap Node heap to container size",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=4096"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "actual",
      "description": "Allows volume prep before privilege drop",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "ACTUAL_TRUSTED_PROXIES",
      "service": "actual",
      "description": "Trusted proxy CIDRs including Railway edge",
      "secret": false,
      "strategy": "default",
      "default": "10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,fc00::/7,::1/128,100.64.0.0/10,fd00::/8"
    },
    {
      "key": "ACTUAL_USER_CREATION_MODE",
      "service": "actual",
      "description": "Admin creates users, no self-signup",
      "secret": false,
      "strategy": "default",
      "default": "manual"
    },
    {
      "key": "ACTUAL_UPLOAD_FILE_SYNC_SIZE_LIMIT_MB",
      "service": "actual",
      "description": "Max budget file sync size",
      "secret": false,
      "strategy": "default",
      "default": "100"
    },
    {
      "key": "ACTUAL_UPLOAD_SYNC_ENCRYPTED_FILE_SYNC_SIZE_LIMIT_MB",
      "service": "actual",
      "description": "Max encrypted file sync size",
      "secret": false,
      "strategy": "default",
      "default": "100"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "actual-budget-railway"
      }
    },
    "cli": "railway deploy --template actual-budget-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "27b6cf32-5872-44d0-b40e-47a585e065bf",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "f2e6d0f3-10a6-419f-8d7f-df149017888c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/actual-budget.svg",
                  "name": "actual",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'mkdir -p /data && chown -R actual:actual /data && setpriv --reuid=actual --regid=actual --init-groups id && exec setpriv --reuid=actual --regid=actual --init-groups /usr/bin/tini -g -- node app.js'",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "actualbudget/actual-server"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listen port",
                      "defaultValue": "5006"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Cap Node heap to container size",
                      "defaultValue": "--max-old-space-size=4096"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Allows volume prep before privilege drop",
                      "defaultValue": "0"
                    },
                    "ACTUAL_TRUSTED_PROXIES": {
                      "isOptional": false,
                      "description": "Trusted proxy CIDRs including Railway edge",
                      "defaultValue": "10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,fc00::/7,::1/128,100.64.0.0/10,fd00::/8"
                    },
                    "ACTUAL_USER_CREATION_MODE": {
                      "isOptional": false,
                      "description": "Admin creates users, no self-signup",
                      "defaultValue": "manual"
                    },
                    "ACTUAL_UPLOAD_FILE_SYNC_SIZE_LIMIT_MB": {
                      "isOptional": false,
                      "description": "Max budget file sync size",
                      "defaultValue": "100"
                    },
                    "ACTUAL_UPLOAD_SYNC_ENCRYPTED_FILE_SYNC_SIZE_LIMIT_MB": {
                      "isOptional": false,
                      "description": "Max encrypted file sync size",
                      "defaultValue": "100"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5006": {
                        "port": 5006
                      }
                    }
                  },
                  "volumeMounts": {
                    "f2e6d0f3-10a6-419f-8d7f-df149017888c": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "actual",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T18:05:46.790Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ae9d44a5ff1540e48f2d",
    "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": 1,
    "typical_start_seconds": 5,
    "slowest_service": "actual"
  }
}
