{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3ad45472-e093-480d-a1ed-dab5e76c95c5",
    "slug": "octop-v1-multi-user-ai-assistant",
    "name": "Octop v1 Multi-User AI Assistant",
    "description": "Self-hosted multi-agent AI assistant for teams, with chat apps and tools.",
    "url": "https://railway.com/deploy/octop-v1-multi-user-ai-assistant",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/octop-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Octop",
      "source": {
        "repo": "https://github.com/baranberkay96/octop-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Octop",
      "description": "Port of the Octop dashboard and API. Railway's healthcheck and the public domain use it; keep 8088 unless you also change the domain's target port.",
      "secret": false,
      "strategy": "default",
      "default": "8088"
    },
    {
      "key": "OCTOP_LOG_LEVEL",
      "service": "Octop",
      "description": "Octop log level: debug, info, warning or error.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "OCTOP_ADMIN_LOCALE",
      "service": "Octop",
      "description": "Language of the first admin's dashboard and default experts: en or zh (first boot only; each user can change it later).",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "OCTOP_DATABASE_URL",
      "service": "Octop",
      "description": "PostgreSQL control-plane database (users, experts, channels, cron, settings, encrypted keys) and agent memory. Empty = SQLite on the volume.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OCTOP_ENABLE_MOBILE",
      "service": "Octop",
      "description": "Remote Android (redroid) needs Docker and kernel binder support, which Railway does not offer; kept off.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "OCTOP_LOG_TO_STDOUT",
      "service": "Octop",
      "description": "true = forward Octop's application log (agents, channels, cron) from /data/.octop/logs to Railway's log view.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OCTOP_ADMIN_PASSWORD",
      "service": "Octop",
      "description": "Admin password (min. 12 characters with letters and digits), generated at deploy. Change it here and redeploy to reset it; a password changed in the dashboard is kept until then.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OCTOP_ADMIN_USERNAME",
      "service": "Octop",
      "description": "Login name of the first admin, created before the dashboard opens. Random on purpose: five wrong passwords lock a username for 15 minutes.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OCTOP_DEFAULT_TIMEZONE",
      "service": "Octop",
      "description": "IANA timezone for dashboard times and cron schedules, e.g. Europe/Istanbul (upstream default is Asia/Shanghai).",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "OCTOP_SECURITY_DEFAULTS",
      "service": "Octop",
      "description": "strict = on the first boot, store a policy with tool approval on and the shell guard set to require approval. upstream = keep upstream defaults (approval off, guard warns only).",
      "secret": false,
      "strategy": "default",
      "default": "strict"
    },
    {
      "key": "OCTOP_ADMIN_DISPLAY_NAME",
      "service": "Octop",
      "description": "Display name of the first admin (first boot only).",
      "secret": false,
      "strategy": "default",
      "default": "Admin"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Octop",
      "description": "Seconds Octop gets to stop agents, channels and the database pool before a redeploy kills it.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway private domain name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for the Data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when the image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to the Postgres database over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to the Postgres DB.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to the DB (generated).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to shut down cleanly.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "octop-v1-multi-user-ai-assistant"
      }
    },
    "cli": "railway deploy --template octop-v1-multi-user-ai-assistant",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3ad45472-e093-480d-a1ed-dab5e76c95c5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a00efebc-03fc-5fba-9179-7ad9c3563ee6": {
                  "icon": "https://cdn.jsdelivr.net/gh/TencentCloud/Octop@v1.0.3b1/docs/assets/octop-logo.svg",
                  "name": "Octop",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 900
                  },
                  "source": {
                    "repo": "baranberkay96/octop-railway",
                    "branch": "main",
                    "rootDirectory": "/services/octop"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port of the Octop dashboard and API. Railway's healthcheck and the public domain use it; keep 8088 unless you also change the domain's target port.",
                      "defaultValue": "8088"
                    },
                    "OCTOP_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Octop log level: debug, info, warning or error.",
                      "defaultValue": "info"
                    },
                    "OCTOP_ADMIN_LOCALE": {
                      "isOptional": true,
                      "description": "Language of the first admin's dashboard and default experts: en or zh (first boot only; each user can change it later).",
                      "defaultValue": "en"
                    },
                    "OCTOP_DATABASE_URL": {
                      "isOptional": true,
                      "description": "PostgreSQL control-plane database (users, experts, channels, cron, settings, encrypted keys) and agent memory. Empty = SQLite on the volume.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "OCTOP_ENABLE_MOBILE": {
                      "isOptional": true,
                      "description": "Remote Android (redroid) needs Docker and kernel binder support, which Railway does not offer; kept off.",
                      "defaultValue": "false"
                    },
                    "OCTOP_LOG_TO_STDOUT": {
                      "isOptional": true,
                      "description": "true = forward Octop's application log (agents, channels, cron) from /data/.octop/logs to Railway's log view.",
                      "defaultValue": "true"
                    },
                    "OCTOP_ADMIN_PASSWORD": {
                      "isOptional": true,
                      "description": "Admin password (min. 12 characters with letters and digits), generated at deploy. Change it here and redeploy to reset it; a password changed in the dashboard is kept until then.",
                      "defaultValue": "{{OCTOP_ADMIN_PASSWORD}}"
                    },
                    "OCTOP_ADMIN_USERNAME": {
                      "isOptional": true,
                      "description": "Login name of the first admin, created before the dashboard opens. Random on purpose: five wrong passwords lock a username for 15 minutes.",
                      "defaultValue": "{{OCTOP_ADMIN_USERNAME}}"
                    },
                    "OCTOP_DEFAULT_TIMEZONE": {
                      "isOptional": true,
                      "description": "IANA timezone for dashboard times and cron schedules, e.g. Europe/Istanbul (upstream default is Asia/Shanghai).",
                      "defaultValue": "UTC"
                    },
                    "OCTOP_SECURITY_DEFAULTS": {
                      "isOptional": true,
                      "description": "strict = on the first boot, store a policy with tool approval on and the shell guard set to require approval. upstream = keep upstream defaults (approval off, guard warns only).",
                      "defaultValue": "strict"
                    },
                    "OCTOP_ADMIN_DISPLAY_NAME": {
                      "isOptional": true,
                      "description": "Display name of the first admin (first boot only).",
                      "defaultValue": "Admin"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Seconds Octop gets to stop agents, channels and the database pool before a redeploy kills it.",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8088": {
                        "port": 8088
                      }
                    }
                  },
                  "volumeMounts": {
                    "2101eeb3-dc30-5044-b630-cdcbb94132ab": {
                      "mountPath": "/data"
                    }
                  }
                },
                "e1fd3aa8-3c3f-5f52-9a24-7dc609cca1c7": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Location where the database will be initialized.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "Railway private domain name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "Required variable for the Data panel.",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "description": "Required variable for the Data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "Required variable for the Data panel.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database created when the image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "URL to connect to the Postgres database over the private network.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "User to connect to the Postgres DB.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "Password to connect to the DB (generated).",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Allow Postgres to shut down cleanly.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "acab08b2-dc2c-51e5-9848-f3c02820caee": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Octop",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-30T16:14:57.468Z",
  "generator_version": "0.1.0"
}
