{
  "manifest_version": "1.0.0",
  "template": {
    "id": "579e3c7f-4413-4c83-9dfa-c9fb8cac12a9",
    "slug": "deploy-octop-multi-agent-ai-assistant",
    "name": "Octop",
    "description": "Tencent's multi-user, multi-agent AI assistant with Postgres",
    "url": "https://railway.com/deploy/deploy-octop-multi-agent-ai-assistant",
    "upstream": {
      "image": "ghcr.io/onepush-dev/octop:1.0.3b1"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Octop",
      "source": {
        "image": "ghcr.io/onepush-dev/octop:1.0.3b1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/.octop",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory, a subfolder of the mounted volume so data persists",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private Railway hostname of the Postgres service for psql/tools",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Password used by psql and tools; mirrors POSTGRES_PASSWORD",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection URL (postgres user, postgres database) that Octop references",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated password for the postgres superuser",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OCTOP_CORS_ORIGINS",
      "service": "Octop",
      "description": "Allowed CORS origin for the dashboard and API; defaults to this service's public HTTPS domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "OCTOP_DATABASE_URL",
      "service": "Octop",
      "description": "Postgres connection string for Octop's control plane and agent memory (references the Postgres service)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OCTOP_DEFAULT_PASSWORD",
      "service": "Octop",
      "description": "Generated first-boot password for the admin user (letters + digits); only used on first start",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "deploy-octop-multi-agent-ai-assistant"
      }
    },
    "cli": "railway deploy --template deploy-octop-multi-agent-ai-assistant",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "579e3c7f-4413-4c83-9dfa-c9fb8cac12a9",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6ebe03c8-08d7-45de-b5ee-860c925c7428": {
                  "icon": null,
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory, a subfolder of the mounted volume so data persists",
                      "defaultValue": "${{RAILWAY_VOLUME_MOUNT_PATH}}/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private Railway hostname of the Postgres service for psql/tools",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password used by psql and tools; mirrors POSTGRES_PASSWORD",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection URL (postgres user, postgres database) that Octop references",
                      "defaultValue": "postgresql://postgres:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the postgres superuser",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "6ebe03c8-08d7-45de-b5ee-860c925c7428": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "99cdcdcd-d5f0-4a69-9492-9b242641456f": {
                  "icon": null,
                  "name": "Octop",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/onepush-dev/octop:1.0.3b1"
                  },
                  "variables": {
                    "OCTOP_CORS_ORIGINS": {
                      "isOptional": false,
                      "description": "Allowed CORS origin for the dashboard and API; defaults to this service's public HTTPS domain",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OCTOP_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string for Octop's control plane and agent memory (references the Postgres service)",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "OCTOP_DEFAULT_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated first-boot password for the admin user (letters + digits); only used on first start",
                      "defaultValue": "{{OCTOP_DEFAULT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "99cdcdcd-d5f0-4a69-9492-9b242641456f": {
                      "mountPath": "/data/.octop"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Octop",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-31T16:15:08.794Z",
  "generator_version": "0.1.0"
}
