{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0477f317-4e87-4246-94c6-2e15860e59c7",
    "slug": "grocy-household-manager",
    "name": "Grocy — Self-Hosted Groceries & Household Manager",
    "description": "Self-host Grocy — track groceries, expiry, recipes & chores",
    "url": "https://railway.com/deploy/grocy-household-manager",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/grocy-railway"
    }
  },
  "services": [
    {
      "name": "Grocy",
      "source": {
        "repo": "https://github.com/gridalpha/grocy-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/config",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Grocy",
      "description": "Container and PHP timezone",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "Grocy",
      "description": "Port the web server listens on",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "GROCY_CURRENCY",
      "service": "Grocy",
      "description": "ISO 4217 code for price formatting",
      "secret": false,
      "strategy": "default",
      "default": "USD"
    },
    {
      "key": "GROCY_ENTRY_PAGE",
      "service": "Grocy",
      "description": "Page Grocy opens on after login",
      "secret": false,
      "strategy": "default",
      "default": "stock"
    },
    {
      "key": "GROCY_BACKUP_KEEP",
      "service": "Grocy",
      "description": "Nightly database backups retained",
      "secret": false,
      "strategy": "default",
      "default": "7"
    },
    {
      "key": "GROCY_ENERGY_UNIT",
      "service": "Grocy",
      "description": "Unit shown for energy values",
      "secret": false,
      "strategy": "default",
      "default": "kcal"
    },
    {
      "key": "GROCY_ADMIN_PASSWORD",
      "service": "Grocy",
      "description": "Password for the first account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GROCY_ADMIN_USERNAME",
      "service": "Grocy",
      "description": "Username of the first account",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "GROCY_DEFAULT_LOCALE",
      "service": "Grocy",
      "description": "Fallback interface language",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "GROCY_NGINX_WORKER_PROCESSES",
      "service": "Grocy",
      "description": "nginx worker process count",
      "secret": false,
      "strategy": "default",
      "default": "2"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "grocy-household-manager"
      }
    },
    "cli": "railway deploy --template grocy-household-manager",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0477f317-4e87-4246-94c6-2e15860e59c7",
            "serializedConfig": {
              "services": {
                "baa01a92-badd-47a0-b41b-b8c8c96dc076": {
                  "icon": "https://raw.githubusercontent.com/grocy/grocy/master/public/img/icon.svg",
                  "name": "Grocy",
                  "source": {
                    "repo": "gridalpha/grocy-railway"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container and PHP timezone",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the web server listens on",
                      "defaultValue": "80"
                    },
                    "GROCY_CURRENCY": {
                      "isOptional": false,
                      "description": "ISO 4217 code for price formatting",
                      "defaultValue": "USD"
                    },
                    "GROCY_ENTRY_PAGE": {
                      "isOptional": false,
                      "description": "Page Grocy opens on after login",
                      "defaultValue": "stock"
                    },
                    "GROCY_BACKUP_KEEP": {
                      "isOptional": false,
                      "description": "Nightly database backups retained",
                      "defaultValue": "7"
                    },
                    "GROCY_ENERGY_UNIT": {
                      "isOptional": false,
                      "description": "Unit shown for energy values",
                      "defaultValue": "kcal"
                    },
                    "GROCY_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the first account",
                      "defaultValue": "{{GROCY_ADMIN_PASSWORD}}"
                    },
                    "GROCY_ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "Username of the first account",
                      "defaultValue": "admin"
                    },
                    "GROCY_DEFAULT_LOCALE": {
                      "isOptional": false,
                      "description": "Fallback interface language",
                      "defaultValue": "en"
                    },
                    "GROCY_NGINX_WORKER_PROCESSES": {
                      "isOptional": false,
                      "description": "nginx worker process count",
                      "defaultValue": "2"
                    }
                  },
                  "volumeMounts": {
                    "baa01a92-badd-47a0-b41b-b8c8c96dc076": {
                      "mountPath": "/config"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T12:30:10.279Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_55624bc3859d4fad8a62",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 107,
    "typical_build_seconds": 30,
    "typical_start_seconds": 0,
    "slowest_service": "Grocy"
  }
}
