{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bbb4fa08-e890-472a-8c0c-22b9c366d19f",
    "slug": "gotify-1",
    "name": "Gotify",
    "description": "Gotify — self-hosted push notification server with REST API and web UI",
    "url": "https://railway.com/deploy/gotify-1",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-gotify"
    }
  },
  "services": [
    {
      "name": "gotify",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-gotify"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "GOTIFY_REGISTRATION",
      "service": "gotify",
      "description": "Allow public user registration (true/false). Default is false — disable to prevent open signups.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "GOTIFY_DATABASE_DIALECT",
      "service": "gotify",
      "description": "Database engine: sqlite3, mysql, or postgres. SQLite is built-in and automatic.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite3"
    },
    {
      "key": "GOTIFY_DEFAULTUSER_NAME",
      "service": "gotify",
      "description": "Default admin username for the Gotify web UI.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "GOTIFY_DEFAULTUSER_PASS",
      "service": "gotify",
      "description": "Default admin password. Auto-generated on first deploy — change after setup.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GOTIFY_DATABASE_CONNECTION",
      "service": "gotify",
      "description": "Database connection string. For SQLite: data/gotify.db. For Postgres: ${{Postgres.DATABASE_URL}}",
      "secret": false,
      "strategy": "default",
      "default": "data/gotify.db"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gotify-1"
      }
    },
    "cli": "railway deploy --template gotify-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bbb4fa08-e890-472a-8c0c-22b9c366d19f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b3645a03-97bb-4fb4-9da8-100f551596ed": {
                  "icon": null,
                  "name": "gotify",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-gotify",
                    "rootDirectory": null
                  },
                  "variables": {
                    "GOTIFY_REGISTRATION": {
                      "description": "Allow public user registration (true/false). Default is false — disable to prevent open signups.",
                      "defaultValue": "false"
                    },
                    "GOTIFY_DATABASE_DIALECT": {
                      "description": "Database engine: sqlite3, mysql, or postgres. SQLite is built-in and automatic.",
                      "defaultValue": "sqlite3"
                    },
                    "GOTIFY_DEFAULTUSER_NAME": {
                      "description": "Default admin username for the Gotify web UI.",
                      "defaultValue": "admin"
                    },
                    "GOTIFY_DEFAULTUSER_PASS": {
                      "description": "Default admin password. Auto-generated on first deploy — change after setup.",
                      "defaultValue": "{{GOTIFY_DEFAULTUSER_PASS}}"
                    },
                    "GOTIFY_DATABASE_CONNECTION": {
                      "description": "Database connection string. For SQLite: data/gotify.db. For Postgres: ${{Postgres.DATABASE_URL}}",
                      "defaultValue": "data/gotify.db"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "b3645a03-97bb-4fb4-9da8-100f551596ed": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T08:41:52.524Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f5fe5bcfd8a6421c8581",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 104,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "gotify"
  }
}
