{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6e5bb289-f266-4623-8b9e-d73cf945e34a",
    "slug": "flatnotes",
    "name": "flatnotes",
    "description": "Markdown notes with password authentication and persistent file storage.",
    "url": "https://railway.com/deploy/flatnotes",
    "upstream": {
      "image": "dullage/flatnotes:v5.5.4@sha256:a509830073d6548d35450a98be3a432716430b674cc70ac93cbbaed1555b5a28"
    }
  },
  "services": [
    {
      "name": "flatnotes",
      "source": {
        "image": "dullage/flatnotes:v5.5.4@sha256:a509830073d6548d35450a98be3a432716430b674cc70ac93cbbaed1555b5a28"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGID",
      "service": "flatnotes",
      "description": "Runtime GID paired with PUID.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "PUID",
      "service": "flatnotes",
      "description": "Runtime UID used by the supported entrypoint after it initializes /data ownership.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "FLATNOTES_PATH",
      "service": "flatnotes",
      "description": "Authoritative directory for Markdown notes, attachments, and the .flatnotes search index.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "FLATNOTES_PORT",
      "service": "flatnotes",
      "description": "Application listener and Railway public-domain target port.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "FLATNOTES_PASSWORD",
      "service": "flatnotes",
      "description": "Fresh login password generated for each template deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "FLATNOTES_USERNAME",
      "service": "flatnotes",
      "description": "Default login username.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "FLATNOTES_AUTH_TYPE",
      "service": "flatnotes",
      "description": "Enables upstream username/password authentication.",
      "secret": false,
      "strategy": "default",
      "default": "password"
    },
    {
      "key": "FLATNOTES_SECRET_KEY",
      "service": "flatnotes",
      "description": "Distinct 64-character hexadecimal JWT signing key; changing it invalidates sessions.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "flatnotes"
      }
    },
    "cli": "railway deploy --template flatnotes",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6e5bb289-f266-4623-8b9e-d73cf945e34a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "581a78d2-9142-45b3-b2e4-649687ba8414": {
                  "icon": null,
                  "name": "flatnotes",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "dullage/flatnotes:v5.5.4@sha256:a509830073d6548d35450a98be3a432716430b674cc70ac93cbbaed1555b5a28"
                  },
                  "variables": {
                    "PGID": {
                      "isOptional": false,
                      "description": "Runtime GID paired with PUID.",
                      "defaultValue": "1000"
                    },
                    "PUID": {
                      "isOptional": false,
                      "description": "Runtime UID used by the supported entrypoint after it initializes /data ownership.",
                      "defaultValue": "1000"
                    },
                    "FLATNOTES_PATH": {
                      "isOptional": false,
                      "description": "Authoritative directory for Markdown notes, attachments, and the .flatnotes search index.",
                      "defaultValue": "/data"
                    },
                    "FLATNOTES_PORT": {
                      "isOptional": false,
                      "description": "Application listener and Railway public-domain target port.",
                      "defaultValue": "8080"
                    },
                    "FLATNOTES_PASSWORD": {
                      "isOptional": false,
                      "description": "Fresh login password generated for each template deployment.",
                      "defaultValue": "{{FLATNOTES_PASSWORD}}"
                    },
                    "FLATNOTES_USERNAME": {
                      "isOptional": false,
                      "description": "Default login username.",
                      "defaultValue": "admin"
                    },
                    "FLATNOTES_AUTH_TYPE": {
                      "isOptional": false,
                      "description": "Enables upstream username/password authentication.",
                      "defaultValue": "password"
                    },
                    "FLATNOTES_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Distinct 64-character hexadecimal JWT signing key; changing it invalidates sessions.",
                      "defaultValue": "{{FLATNOTES_SECRET_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "581a78d2-9142-45b3-b2e4-649687ba8414": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "flatnotes",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T22:35:50.063Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6faf86ff563b48778216",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 21,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "flatnotes"
  }
}
