{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c585e299-6f4e-43f4-b16e-901fd26fbb55",
    "slug": "jotty",
    "name": "Jotty",
    "description": "Self-hosted checklists and markdown notes with encryption and SSO",
    "url": "https://railway.com/deploy/jotty",
    "upstream": {
      "image": "ghcr.io/fccview/jotty:1.27.0"
    }
  },
  "services": [
    {
      "name": "jotty",
      "source": {
        "image": "ghcr.io/fccview/jotty:1.27.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGID",
      "service": "jotty",
      "description": "See PUID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "PORT",
      "service": "jotty",
      "description": "Port the app listens on. Matches the domain target port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "PUID",
      "service": "jotty",
      "description": "Run as root so the app can write to the Railway volume. Leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "HTTPS",
      "service": "jotty",
      "description": "Secure session cookies. Railway terminates TLS at the edge, so leave this on.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "APP_URL",
      "service": "jotty",
      "description": "Public address of your instance. Sessions and SSO redirects are built from it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HOSTNAME",
      "service": "jotty",
      "description": "Listen address. Leave as is; Railway reaches containers over IPv6.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "NODE_ENV",
      "service": "jotty",
      "description": "Run mode.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "INTERNAL_API_URL",
      "service": "jotty",
      "description": "Server-side self calls.",
      "secret": false,
      "strategy": "default",
      "default": "http://localhost:3000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "jotty"
      }
    },
    "cli": "railway deploy --template jotty",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c585e299-6f4e-43f4-b16e-901fd26fbb55",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b563842d-aa82-4fd8-88bc-88fe7ad04a7f": {
                  "icon": "https://raw.githubusercontent.com/fccview/jotty/main/public/app-icons/android-chrome-512x512.png",
                  "name": "jotty",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/fccview/jotty:1.27.0"
                  },
                  "variables": {
                    "PGID": {
                      "isOptional": false,
                      "description": "See PUID.",
                      "defaultValue": "0"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the app listens on. Matches the domain target port.",
                      "defaultValue": "3000"
                    },
                    "PUID": {
                      "isOptional": false,
                      "description": "Run as root so the app can write to the Railway volume. Leave as is.",
                      "defaultValue": "0"
                    },
                    "HTTPS": {
                      "isOptional": false,
                      "description": "Secure session cookies. Railway terminates TLS at the edge, so leave this on.",
                      "defaultValue": "true"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Public address of your instance. Sessions and SSO redirects are built from it.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Listen address. Leave as is; Railway reaches containers over IPv6.",
                      "defaultValue": "::"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Run mode.",
                      "defaultValue": "production"
                    },
                    "INTERNAL_API_URL": {
                      "isOptional": false,
                      "description": "Server-side self calls.",
                      "defaultValue": "http://localhost:3000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "b563842d-aa82-4fd8-88bc-88fe7ad04a7f": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "jotty",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-07T23:54:17.958Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T00:00:06.641Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_21b1b4d77243456e8dec",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 122,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "jotty"
  }
}
