{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ace8cc65-57ec-44d6-a3b0-490dafbf77cc",
    "slug": "cryptpad-office",
    "name": "CryptPad | Encrypted Docs, Sheets & Slides, Google Docs Alternative",
    "description": "End-to-end encrypted office suite. Docs, sheets and slides, ready to edit",
    "url": "https://railway.com/deploy/cryptpad-office",
    "upstream": {
      "repo_url": "https://github.com/two-workspaces/cryptpad-office"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "CryptPad",
      "source": {
        "repo": "https://github.com/two-workspaces/cryptpad-office"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Sandbox",
      "source": {
        "image": "caddy:2.11.7-alpine"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "CryptPad",
      "description": "Port the service listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "CRYPTPAD_ORIGIN",
      "service": "CryptPad",
      "description": "Main address. Change it when you add a custom domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CRYPTPAD_INSTALL_TOKEN",
      "service": "CryptPad",
      "description": "One-time token that makes you the first admin",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CRYPTPAD_SANDBOX_ORIGIN",
      "service": "CryptPad",
      "description": "Sandbox address, which isolates documents from your account. Must differ from the main address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CRYPTPAD_ADMIN_SETUP_URL",
      "service": "CryptPad",
      "description": "Open this once to create the first admin account",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "Sandbox",
      "description": "Port the service listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "CRYPTPAD_UPSTREAM",
      "service": "Sandbox",
      "description": "CryptPad on the private network - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "cryptpad-office"
      }
    },
    "cli": "railway deploy --template cryptpad-office",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ace8cc65-57ec-44d6-a3b0-490dafbf77cc",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1a576101-9b40-405a-a981-b5a2719600cf": {
                  "icon": "https://raw.githubusercontent.com/cryptpad/cryptpad/main/customize.dist/CryptPad_logo.svg",
                  "name": "CryptPad",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/cryptpad-office",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the service listens on - leave as is",
                      "defaultValue": "3000"
                    },
                    "CRYPTPAD_ORIGIN": {
                      "isOptional": false,
                      "description": "Main address. Change it when you add a custom domain",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CRYPTPAD_INSTALL_TOKEN": {
                      "isOptional": false,
                      "description": "One-time token that makes you the first admin",
                      "defaultValue": "{{CRYPTPAD_INSTALL_TOKEN}}"
                    },
                    "CRYPTPAD_SANDBOX_ORIGIN": {
                      "isOptional": false,
                      "description": "Sandbox address, which isolates documents from your account. Must differ from the main address",
                      "defaultValue": "https://${{Sandbox.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CRYPTPAD_ADMIN_SETUP_URL": {
                      "isOptional": false,
                      "description": "Open this once to create the first admin account",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/install/#${{CRYPTPAD_INSTALL_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "1a576101-9b40-405a-a981-b5a2719600cf": {
                      "mountPath": "/data"
                    }
                  }
                },
                "760e8ff5-6680-4055-9dcf-eea58910498f": {
                  "icon": "https://raw.githubusercontent.com/cryptpad/cryptpad/main/customize.dist/CryptPad_logo_grey.svg",
                  "name": "Sandbox",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec caddy reverse-proxy --from :$PORT --to http://$CRYPTPAD_UPSTREAM\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "caddy:2.11.7-alpine"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the service listens on - leave as is",
                      "defaultValue": "8080"
                    },
                    "CRYPTPAD_UPSTREAM": {
                      "isOptional": false,
                      "description": "CryptPad on the private network - leave as is",
                      "defaultValue": "${{CryptPad.RAILWAY_PRIVATE_DOMAIN}}:${{CryptPad.PORT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "CryptPad",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-11-07T16:15:10.050Z",
  "generator_version": "0.1.0"
}
