{
  "manifest_version": "1.0.0",
  "template": {
    "id": "af93943f-5ca3-46a7-b2c8-b97fe0609fca",
    "slug": "elizaos-secure-starter",
    "name": "ElizaOS",
    "description": "Authenticated ElizaOS agent with OpenAI and persistent pgvector memory",
    "url": "https://railway.com/deploy/elizaos-secure-starter",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-elizaos"
    }
  },
  "services": [
    {
      "name": "pgvector",
      "source": {
        "image": "pgvector/pgvector:0.8.1-pg17-bookworm"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "elizaos",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-elizaos"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "pgvector",
      "description": "PostgreSQL data directory inside the attached volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "pgvector",
      "description": "Database created for ElizaOS.",
      "secret": false,
      "strategy": "default",
      "default": "eliza"
    },
    {
      "key": "POSTGRES_USER",
      "service": "pgvector",
      "description": "PostgreSQL superuser used by ElizaOS migrations.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "pgvector",
      "description": "Database password. Generated for every deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SECRET_SALT",
      "service": "elizaos",
      "description": "Salt used to encrypt ElizaOS secrets. Generated for every deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "POSTGRES_URL",
      "service": "elizaos",
      "description": "Private pgvector connection used by ElizaOS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "elizaos",
      "description": "OpenAI API key used by the bundled agent.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BASIC_AUTH_PASSWORD",
      "service": "elizaos",
      "description": "Password for the public dashboard and HTTP API. Generated for every deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "BASIC_AUTH_USERNAME",
      "service": "elizaos",
      "description": "Username for the public dashboard and HTTP API.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "ELIZA_SERVER_AUTH_TOKEN",
      "service": "elizaos",
      "description": "Private ElizaOS server API token injected by the Caddy proxy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "elizaos-secure-starter"
      }
    },
    "cli": "railway deploy --template elizaos-secure-starter",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "af93943f-5ca3-46a7-b2c8-b97fe0609fca",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "87a9891b-b522-4813-aabc-f7e38d248929": {
                  "icon": "https://upload.wikimedia.org/wikipedia/commons/2/29/Postgresql_elephant.svg",
                  "name": "pgvector",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:0.8.1-pg17-bookworm"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory inside the attached volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created for ElizaOS.",
                      "defaultValue": "eliza"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL superuser used by ElizaOS migrations.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password. Generated for every deployment.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "87a9891b-b522-4813-aabc-f7e38d248929": {
                      "mountPath": "/var/lib/postgresql/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                },
                "c7eb4a32-ac17-4f68-9be9-064c0ca9eb1c": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-elizaos/ae9a13708ad0781343b4f9ad579bb4c06cf3b1b6/icon.png",
                  "name": "elizaos",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-elizaos",
                    "rootDirectory": null
                  },
                  "variables": {
                    "SECRET_SALT": {
                      "isOptional": false,
                      "description": "Salt used to encrypt ElizaOS secrets. Generated for every deployment.",
                      "defaultValue": "{{SECRET_SALT}}"
                    },
                    "POSTGRES_URL": {
                      "isOptional": false,
                      "description": "Private pgvector connection used by ElizaOS.",
                      "defaultValue": "postgresql://${{pgvector.POSTGRES_USER}}:${{pgvector.POSTGRES_PASSWORD}}@${{pgvector.RAILWAY_PRIVATE_DOMAIN}}:5432/${{pgvector.POSTGRES_DB}}"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "OpenAI API key used by the bundled agent.",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "BASIC_AUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the public dashboard and HTTP API. Generated for every deployment.",
                      "defaultValue": "{{BASIC_AUTH_PASSWORD}}"
                    },
                    "BASIC_AUTH_USERNAME": {
                      "isOptional": false,
                      "description": "Username for the public dashboard and HTTP API.",
                      "defaultValue": "admin"
                    },
                    "ELIZA_SERVER_AUTH_TOKEN": {
                      "isOptional": false,
                      "description": "Private ElizaOS server API token injected by the Caddy proxy.",
                      "defaultValue": "{{ELIZA_SERVER_AUTH_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "elizaos",
      "method": "GET",
      "path": "/healthz",
      "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-05T06:07:52.279Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ba7a825667ec43169227",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 128,
    "typical_build_seconds": 91,
    "typical_start_seconds": 20,
    "slowest_service": "elizaos"
  }
}
