{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a4bd2528-6d2e-4573-bfd4-558a61bbcfb6",
    "slug": "nautilo",
    "name": "Nautilo",
    "description": "Run a private workspace for people and AI agents.",
    "url": "https://railway.com/deploy/nautilo",
    "upstream": {
      "image": "ghcr.io/logto-io/logto@sha256:aa4c428b70d9dd8eac23b6eeb3826a02d5fe0283b5dd774589b9b9760e0c6e9f"
    }
  },
  "services": [
    {
      "name": "logto-seed",
      "source": {
        "image": "ghcr.io/logto-io/logto@sha256:aa4c428b70d9dd8eac23b6eeb3826a02d5fe0283b5dd774589b9b9760e0c6e9f"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "app-postgres",
      "source": {
        "image": "pgvector/pgvector@sha256:7ae6051efd0e60444282c27c7e141af07f322ce033300e727a49c3dd11075e38"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "logto",
      "source": {
        "image": "ghcr.io/logto-io/logto@sha256:aa4c428b70d9dd8eac23b6eeb3826a02d5fe0283b5dd774589b9b9760e0c6e9f"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "logto-postgres",
      "source": {
        "image": "postgres@sha256:95206741a5b214807675e14165369d05b93a9cf692223b616d07cca227e74b0b"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "nautilo-server",
      "source": {
        "image": "ghcr.io/logto-io/logto@sha256:aa4c428b70d9dd8eac23b6eeb3826a02d5fe0283b5dd774589b9b9760e0c6e9f"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/nautilo",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "app-postgres",
      "description": "PostgreSQL data directory. Keep the provided value.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_USER",
      "service": "app-postgres",
      "description": "PostgreSQL administrator used during Nautilo setup. Keep the provided value.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "app-postgres",
      "description": "Generated automatically for this database. Do not replace or reuse it.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NAUTILO_TEMPLATE_APP_DB_PASSWORD",
      "service": "app-postgres",
      "description": "Generated automatically for Nautilo's application database role.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NAUTILO_TEMPLATE_AGENT_DB_PASSWORD",
      "service": "app-postgres",
      "description": "Generated automatically for Nautilo's agent database role.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NAUTILO_TEMPLATE_CRYPTO_DB_PASSWORD",
      "service": "app-postgres",
      "description": "Generated automatically for Nautilo's encryption database role.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NAUTILO_TEMPLATE_LOGTO_HANDOFF_TOKEN",
      "service": "logto",
      "description": "Generated automatically for the one-time Nautilo identity handoff.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PGDATA",
      "service": "logto-postgres",
      "description": "PostgreSQL data directory. Keep the provided value.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_USER",
      "service": "logto-postgres",
      "description": "PostgreSQL administrator used during identity setup. Keep the provided value.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "logto-postgres",
      "description": "Generated automatically for this database. Do not replace or reuse it.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NAUTILO_TEMPLATE_LOGTO_DB_PASSWORD",
      "service": "logto-postgres",
      "description": "Generated automatically for the identity database role.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "nautilo-server",
      "description": "Internal Nautilo HTTP port. Keep the provided value.",
      "secret": false,
      "strategy": "default",
      "default": "3001"
    },
    {
      "key": "NAUTILO_BOOTSTRAP_TOKEN",
      "service": "nautilo-server",
      "description": "Generated automatically for first-owner setup and retired after use.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NAUTILO_LOGTO_HTTP_EMAIL_WEBHOOK_SECRET",
      "service": "nautilo-server",
      "description": "Generated automatically to authenticate identity email webhooks.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nautilo"
      }
    },
    "cli": "railway deploy --template nautilo",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a4bd2528-6d2e-4573-bfd4-558a61bbcfb6",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "904a32ac-31f3-4f28-b18a-2255ff5a59a0": {
                  "icon": null,
                  "name": "logto-seed",
                  "deploy": {
                    "startCommand": "node -e \"setInterval(() => {}, 2147483647)\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/logto-io/logto@sha256:aa4c428b70d9dd8eac23b6eeb3826a02d5fe0283b5dd774589b9b9760e0c6e9f"
                  },
                  "variables": {}
                },
                "ae3836bf-8f47-4374-bfae-256e6562b84c": {
                  "icon": null,
                  "name": "app-postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector@sha256:7ae6051efd0e60444282c27c7e141af07f322ce033300e727a49c3dd11075e38"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory. Keep the provided value.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL administrator used during Nautilo setup. Keep the provided value.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated automatically for this database. Do not replace or reuse it.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "NAUTILO_TEMPLATE_APP_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated automatically for Nautilo's application database role.",
                      "defaultValue": "{{NAUTILO_TEMPLATE_APP_DB_PASSWORD}}"
                    },
                    "NAUTILO_TEMPLATE_AGENT_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated automatically for Nautilo's agent database role.",
                      "defaultValue": "{{NAUTILO_TEMPLATE_AGENT_DB_PASSWORD}}"
                    },
                    "NAUTILO_TEMPLATE_CRYPTO_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated automatically for Nautilo's encryption database role.",
                      "defaultValue": "{{NAUTILO_TEMPLATE_CRYPTO_DB_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "ae3836bf-8f47-4374-bfae-256e6562b84c": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "c0c6704d-ccec-476f-b57f-fd824aaa6336": {
                  "icon": null,
                  "name": "logto",
                  "deploy": {
                    "startCommand": "node -e \"const http=require('http');http.createServer((_q,r)=>{r.writeHead(503,{'content-type':'text/plain; charset=utf-8'});r.end('Nautilo setup is waiting for the administrator CLI.');}).listen(4301,'::');setInterval(()=>{},2147483647)\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/logto-io/logto@sha256:aa4c428b70d9dd8eac23b6eeb3826a02d5fe0283b5dd774589b9b9760e0c6e9f"
                  },
                  "variables": {
                    "NAUTILO_TEMPLATE_LOGTO_HANDOFF_TOKEN": {
                      "isOptional": false,
                      "description": "Generated automatically for the one-time Nautilo identity handoff.",
                      "defaultValue": "{{NAUTILO_TEMPLATE_LOGTO_HANDOFF_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4301": {
                        "port": 4301
                      }
                    }
                  }
                },
                "e8b45ee7-c8fb-4deb-ac10-d725e1c5a9cb": {
                  "icon": null,
                  "name": "logto-postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres@sha256:95206741a5b214807675e14165369d05b93a9cf692223b616d07cca227e74b0b"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory. Keep the provided value.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL administrator used during identity setup. Keep the provided value.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated automatically for this database. Do not replace or reuse it.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "NAUTILO_TEMPLATE_LOGTO_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated automatically for the identity database role.",
                      "defaultValue": "{{NAUTILO_TEMPLATE_LOGTO_DB_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "e8b45ee7-c8fb-4deb-ac10-d725e1c5a9cb": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "ff95b2a2-21d0-4476-ae8e-66c43df4bde3": {
                  "icon": null,
                  "name": "nautilo-server",
                  "deploy": {
                    "startCommand": "node -e \"require('http').createServer((_q,r)=>{r.writeHead(200,{'content-type':'text/plain; charset=utf-8'});r.end('Finish setting up Nautilo with the administrator CLI.');}).listen(3001,'::')\"",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/logto-io/logto@sha256:aa4c428b70d9dd8eac23b6eeb3826a02d5fe0283b5dd774589b9b9760e0c6e9f"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Internal Nautilo HTTP port. Keep the provided value.",
                      "defaultValue": "3001"
                    },
                    "NAUTILO_BOOTSTRAP_TOKEN": {
                      "isOptional": false,
                      "description": "Generated automatically for first-owner setup and retired after use.",
                      "defaultValue": "{{NAUTILO_BOOTSTRAP_TOKEN}}"
                    },
                    "NAUTILO_LOGTO_HTTP_EMAIL_WEBHOOK_SECRET": {
                      "isOptional": false,
                      "description": "Generated automatically to authenticate identity email webhooks.",
                      "defaultValue": "{{NAUTILO_LOGTO_HTTP_EMAIL_WEBHOOK_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3001": {
                        "port": 3001
                      }
                    }
                  },
                  "volumeMounts": {
                    "ff95b2a2-21d0-4476-ae8e-66c43df4bde3": {
                      "mountPath": "/var/lib/nautilo"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "nautilo-server",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T16:48:35.872Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c1e5a4e2f67248728822",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 81,
    "typical_build_seconds": 0,
    "typical_start_seconds": 22,
    "slowest_service": "logto"
  }
}
