{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c5d36228-71da-4aa6-ae7f-79e95fc885fb",
    "slug": "sharkey",
    "name": "Sharkey",
    "description": "Federated social server with generated root, PostgreSQL, and Redis",
    "url": "https://railway.com/deploy/sharkey",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-sharkey"
    }
  },
  "services": [
    {
      "name": "sharkey",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-sharkey"
      },
      "needs_volume": true,
      "volume_mount_path": "/sharkey/files",
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17.6-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-sharkey"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "sharkey",
      "description": "Public Sharkey port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "DOMAIN",
      "service": "sharkey",
      "description": "Stable federation domain; do not change after launch.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_HOST",
      "service": "sharkey",
      "description": "Private PostgreSQL host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_NAME",
      "service": "sharkey",
      "description": "Database name.",
      "secret": false,
      "strategy": "default",
      "default": "sharkey"
    },
    {
      "key": "DB_PASS",
      "service": "sharkey",
      "description": "Shared generated database password.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "sharkey",
      "description": "PostgreSQL port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "DB_USER",
      "service": "sharkey",
      "description": "Database user.",
      "secret": false,
      "strategy": "default",
      "default": "sharkey"
    },
    {
      "key": "REDIS_HOST",
      "service": "sharkey",
      "description": "Private Redis host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PASS",
      "service": "sharkey",
      "description": "Shared generated Redis password.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PORT",
      "service": "sharkey",
      "description": "Redis port.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "sharkey",
      "description": "Node.js memory ceiling.",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=2048"
    },
    {
      "key": "PUBLIC_SCHEME",
      "service": "sharkey",
      "description": "Canonical public URL scheme.",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "SHARKEY_ADMIN_PASSWORD",
      "service": "sharkey",
      "description": "Generated root administrator password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Data directory inside the persistent volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Sharkey database.",
      "secret": false,
      "strategy": "default",
      "default": "sharkey"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Sharkey database user.",
      "secret": false,
      "strategy": "default",
      "default": "sharkey"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Generated database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Generated Redis password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "sharkey"
      }
    },
    "cli": "railway deploy --template sharkey",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c5d36228-71da-4aa6-ae7f-79e95fc885fb",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "72f1100f-be3d-4c82-807e-cb5d22d08211": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-sharkey/35348141a890ca2e7b885dfafe77a557e8ba30ca/assets/sharkey-icon.png",
                  "name": "sharkey",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 900,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-sharkey",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public Sharkey port.",
                      "defaultValue": "3000"
                    },
                    "DOMAIN": {
                      "isOptional": false,
                      "description": "Stable federation domain; do not change after launch.",
                      "defaultValue": "${{sharkey.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Private PostgreSQL host.",
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_NAME": {
                      "isOptional": false,
                      "description": "Database name.",
                      "defaultValue": "sharkey"
                    },
                    "DB_PASS": {
                      "isOptional": false,
                      "description": "Shared generated database password.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "PostgreSQL port.",
                      "defaultValue": "5432"
                    },
                    "DB_USER": {
                      "isOptional": false,
                      "description": "Database user.",
                      "defaultValue": "sharkey"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Private Redis host.",
                      "defaultValue": "${{redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PASS": {
                      "isOptional": false,
                      "description": "Shared generated Redis password.",
                      "defaultValue": "${{redis.REDIS_PASSWORD}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Redis port.",
                      "defaultValue": "6379"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node.js memory ceiling.",
                      "defaultValue": "--max-old-space-size=2048"
                    },
                    "PUBLIC_SCHEME": {
                      "isOptional": false,
                      "description": "Canonical public URL scheme.",
                      "defaultValue": "https"
                    },
                    "SHARKEY_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated root administrator password.",
                      "defaultValue": "{{SHARKEY_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "72f1100f-be3d-4c82-807e-cb5d22d08211": {
                      "mountPath": "/sharkey/files",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                },
                "90e4f6d4-8455-4226-9a26-6b76518c470c": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.6-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory inside the persistent volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Sharkey database.",
                      "defaultValue": "sharkey"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Sharkey database user.",
                      "defaultValue": "sharkey"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated database password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "90e4f6d4-8455-4226-9a26-6b76518c470c": {
                      "mountPath": "/var/lib/postgresql/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                },
                "de4e805a-b0c0-4723-82a3-ac4994c9fa42": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-sharkey",
                    "rootDirectory": "redis"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated Redis password.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "de4e805a-b0c0-4723-82a3-ac4994c9fa42": {
                      "mountPath": "/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "sharkey",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T00:12:22.514Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8f365516158b450196df",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 168,
    "typical_build_seconds": 51,
    "typical_start_seconds": 30,
    "slowest_service": "sharkey"
  }
}
