{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bf906c7e-ab1e-4f1d-9517-48b33950eafb",
    "slug": "uptime-kuma-monito-1",
    "name": "Uptime Kuma",
    "description": "Uptime monitoring, incident alerts, certificate expiry and status pages",
    "url": "https://railway.com/deploy/uptime-kuma-monito-1",
    "upstream": {
      "image": "louislam/uptime-kuma:2"
    }
  },
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "uptime-kuma",
      "source": {
        "image": "louislam/uptime-kuma:2"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Private hostname, never publicly exposed",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "MySQL port on the private network",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "Superuser; give the app a scoped user instead",
      "secret": false,
      "strategy": "default",
      "default": "umami"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Private-network connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQL_USER",
      "service": "MySQL",
      "description": "Scoped, non-root application account",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Alias consumers reference as ${{MySQL.MYSQLDATABASE}}",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Alias of the root password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database created on first init",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "MySQL",
      "description": "Password for the application account",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_PUBLIC_URL",
      "service": "MySQL",
      "description": "External connection string; empty host/port until a TCP proxy exists",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Root password, generated once at init — read only when the data dir is created",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "uptime-kuma",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "3001"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "uptime-kuma",
      "description": "Node heap ceiling for container",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=4096"
    },
    {
      "key": "UPTIME_KUMA_DB_NAME",
      "service": "uptime-kuma",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "UPTIME_KUMA_DB_PORT",
      "service": "uptime-kuma",
      "description": "Database port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "UPTIME_KUMA_DB_TYPE",
      "service": "uptime-kuma",
      "description": "Use MySQL/MariaDB instead of SQLite",
      "secret": false,
      "strategy": "default",
      "default": "mariadb"
    },
    {
      "key": "UPTIME_KUMA_DB_HOSTNAME",
      "service": "uptime-kuma",
      "description": "Private database hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "UPTIME_KUMA_DB_PASSWORD",
      "service": "uptime-kuma",
      "description": "Application database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "UPTIME_KUMA_DB_USERNAME",
      "service": "uptime-kuma",
      "description": "Scoped application database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "uptime-kuma-monito-1"
      }
    },
    "cli": "railway deploy --template uptime-kuma-monito-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bf906c7e-ab1e-4f1d-9517-48b33950eafb",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "24163528-d81e-4f28-8723-487361686429": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Private hostname, never publicly exposed",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "MySQL port on the private network",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "Superuser; give the app a scoped user instead",
                      "defaultValue": "umami"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Private-network connection string",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:3306/${{MYSQL_DATABASE}}"
                    },
                    "MYSQL_USER": {
                      "isOptional": false,
                      "description": "Scoped, non-root application account",
                      "defaultValue": "${{MYSQLUSER}}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Alias consumers reference as ${{MySQL.MYSQLDATABASE}}",
                      "defaultValue": "${{MYSQL_DATABASE}}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Alias of the root password",
                      "defaultValue": "{{MYSQLPASSWORD}}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on first init",
                      "defaultValue": "railway"
                    },
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the application account",
                      "defaultValue": "${{MYSQLPASSWORD}}"
                    },
                    "MYSQL_PUBLIC_URL": {
                      "description": "External connection string; empty host/port until a TCP proxy exists",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{MYSQL_DATABASE}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password, generated once at init — read only when the data dir is created",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "24163528-d81e-4f28-8723-487361686429": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "db21bc66-9fce-4684-8643-888ded143bff": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/uptime-kuma.svg",
                  "name": "uptime-kuma",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'setcap -r /usr/bin/ping 2>/dev/null || { mkdir -p /usr/local/bin && cp /usr/bin/ping /usr/local/bin/ping; }; echo \"boot: ping=$(command -v ping) caps=[$(getcap /usr/bin/ping 2>/dev/null)]\"; exec /usr/bin/dumb-init -- node server/server.js'",
                    "healthcheckPath": "/dashboard",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "louislam/uptime-kuma:2"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "3001"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap ceiling for container",
                      "defaultValue": "--max-old-space-size=4096"
                    },
                    "UPTIME_KUMA_DB_NAME": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{MySQL.MYSQLDATABASE}}"
                    },
                    "UPTIME_KUMA_DB_PORT": {
                      "isOptional": false,
                      "description": "Database port",
                      "defaultValue": "${{MySQL.MYSQLPORT}}"
                    },
                    "UPTIME_KUMA_DB_TYPE": {
                      "isOptional": false,
                      "description": "Use MySQL/MariaDB instead of SQLite",
                      "defaultValue": "mariadb"
                    },
                    "UPTIME_KUMA_DB_HOSTNAME": {
                      "isOptional": false,
                      "description": "Private database hostname",
                      "defaultValue": "${{MySQL.MYSQLHOST}}"
                    },
                    "UPTIME_KUMA_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Application database password",
                      "defaultValue": "${{MySQL.MYSQL_PASSWORD}}"
                    },
                    "UPTIME_KUMA_DB_USERNAME": {
                      "isOptional": false,
                      "description": "Scoped application database user",
                      "defaultValue": "${{MySQL.MYSQL_USER}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3001": {
                        "port": 3001
                      }
                    }
                  },
                  "volumeMounts": {
                    "db21bc66-9fce-4684-8643-888ded143bff": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "uptime-kuma",
      "method": "GET",
      "path": "/dashboard",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T17:24:52.827Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_3992709a0ff34280b13f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 89,
    "typical_build_seconds": 0,
    "typical_start_seconds": 26,
    "slowest_service": "uptime-kuma"
  }
}
