{
  "manifest_version": "1.0.0",
  "template": {
    "id": "78ba421d-92fb-4e95-a832-5b63c93a6f02",
    "slug": "grocy-inventory",
    "name": "Grocy",
    "description": "Household manager for groceries, expiry dates, recipes and chores",
    "url": "https://railway.com/deploy/grocy-inventory",
    "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": true
    }
  ],
  "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-inventory"
      }
    },
    "cli": "railway deploy --template grocy-inventory",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "78ba421d-92fb-4e95-a832-5b63c93a6f02",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2eb4d62d-9729-4f14-9b4b-859b5a5bd52e": {
                  "icon": "https://raw.githubusercontent.com/grocy/grocy/master/public/img/icon.svg",
                  "name": "grocy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/grocy-railway",
                    "rootDirectory": null
                  },
                  "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"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "2eb4d62d-9729-4f14-9b4b-859b5a5bd52e": {
                      "mountPath": "/config"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T22:14:37.505Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T13:40:11.358Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_55ec046a967c4635a79a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 86,
    "typical_build_seconds": 30,
    "typical_start_seconds": 10,
    "slowest_service": "grocy"
  }
}
