{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5fe56f14-61b7-4b80-82d0-3f8cc7881d09",
    "slug": "hn7jCZ",
    "name": "Grafana Persistent",
    "description": "Grafana, with a volume attached to keep your configurations around",
    "url": "https://railway.com/deploy/hn7jCZ",
    "upstream": {
      "repo_url": "https://github.com/vergissberlin/railwayapp-grafana"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Grafana",
      "source": {
        "repo": "https://github.com/vergissberlin/railwayapp-grafana"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/grafana",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Grafana",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "VERSION",
      "service": "Grafana",
      "description": "Provide a value for VERSION.",
      "secret": false,
      "strategy": "default",
      "default": "latest"
    },
    {
      "key": "GF_LOG_MODE",
      "service": "Grafana",
      "description": "Provide a value for GF_LOG_MODE.",
      "secret": false,
      "strategy": "default",
      "default": "console"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Grafana",
      "description": "Used to run the volume safely: https://docs.railway.com/reference/volumes#caveats",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "GF_INSTALL_PLUGINS",
      "service": "Grafana",
      "description": "Provide a value for GF_INSTALL_PLUGINS.",
      "secret": false,
      "strategy": "default",
      "default": "grafana-piechart-panel,grafana-worldmap-panel,grafana-clock-panel,grafana-simple-json-datasource"
    },
    {
      "key": "GF_SECURITY_ADMIN_USER",
      "service": "Grafana",
      "description": "The name of your admin user",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "GF_DEFAULT_INSTANCE_NAME",
      "service": "Grafana",
      "description": "The name of your grafana instance",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "GF_SECURITY_ADMIN_PASSWORD",
      "service": "Grafana",
      "description": "The password for your admin account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "hn7jCZ"
      }
    },
    "cli": "railway deploy --template hn7jCZ",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5fe56f14-61b7-4b80-82d0-3f8cc7881d09",
            "serializedConfig": {
              "services": {
                "47baf7fb-8b3b-4a9f-b850-d802dfca6e56": {
                  "icon": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/Grafana_icon.svg/1969px-Grafana_icon.svg.png",
                  "name": "Grafana",
                  "source": {
                    "repo": "vergissberlin/railwayapp-grafana",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "3000"
                    },
                    "VERSION": {
                      "defaultValue": "latest"
                    },
                    "GF_LOG_MODE": {
                      "defaultValue": "console"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Used to run the volume safely: https://docs.railway.com/reference/volumes#caveats",
                      "defaultValue": "0"
                    },
                    "GF_INSTALL_PLUGINS": {
                      "defaultValue": "grafana-piechart-panel,grafana-worldmap-panel,grafana-clock-panel,grafana-simple-json-datasource"
                    },
                    "GF_SERVER_ROOT_URL": {
                      "isOptional": true,
                      "description": "Your grafana base URL, like https://grafana.yourdomain.com",
                      "defaultValue": ""
                    },
                    "GF_SECURITY_ADMIN_USER": {
                      "description": "The name of your admin user",
                      "defaultValue": "{{GF_SECURITY_ADMIN_USER}}"
                    },
                    "GF_DEFAULT_INSTANCE_NAME": {
                      "description": "The name of your grafana instance",
                      "defaultValue": "{{GF_DEFAULT_INSTANCE_NAME}}"
                    },
                    "GF_SECURITY_ADMIN_PASSWORD": {
                      "description": "The password for your admin account",
                      "defaultValue": "{{GF_SECURITY_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "47baf7fb-8b3b-4a9f-b850-d802dfca6e56": {
                      "mountPath": "/var/lib/grafana"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
