{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6dc146bd-544a-4e13-9cd1-20f55c82676c",
    "slug": "excalidraw-collaborator-support",
    "name": "Excalidraw (Collaborator support)",
    "description": "Deploy and Host excalidraw-selfhosted with Railway (Collaborator support)",
    "url": "https://railway.com/deploy/excalidraw-collaborator-support",
    "upstream": {
      "image": "excalidraw/excalidraw@sha256:f7ee194addd607bf831d2af0f0a34463dd4225e426cf35199ef0b12a803398e9"
    }
  },
  "services": [
    {
      "name": "Excalidraw",
      "source": {
        "image": "excalidraw/excalidraw@sha256:f7ee194addd607bf831d2af0f0a34463dd4225e426cf35199ef0b12a803398e9"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Excalidraw Room",
      "source": {
        "image": "excalidraw/excalidraw-room@sha256:2fe999f9be4379e3ee282fc45d75d84a691a6383dde33544514cc395287c7a70"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Excalidraw",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "VITE_APP_WS_SERVER_URL",
      "service": "Excalidraw",
      "description": "Provide a value for VITE_APP_WS_SERVER_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CORS_ORIGIN",
      "service": "Excalidraw Room",
      "description": "Provide a value for CORS_ORIGIN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "excalidraw-collaborator-support"
      }
    },
    "cli": "railway deploy --template excalidraw-collaborator-support",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6dc146bd-544a-4e13-9cd1-20f55c82676c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "043b7f7e-95a4-4158-8ddf-327489160278": {
                  "icon": "https://escolhalivre.org.br/wp-content/uploads/2024/07/excalindraw.png",
                  "name": "Excalidraw",
                  "deploy": {
                    "startCommand": "sh -c 'if [ -n \"$VITE_APP_WS_SERVER_URL\" ]; then sed -i \"s|https://oss-collab\\.excalidraw\\.com|$VITE_APP_WS_SERVER_URL|g\" /usr/share/nginx/html/assets/*.js; fi; exec nginx -g \"daemon off;\"'",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "excalidraw/excalidraw@sha256:f7ee194addd607bf831d2af0f0a34463dd4225e426cf35199ef0b12a803398e9"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "80"
                    },
                    "VITE_APP_WS_SERVER_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{\"Excalidraw Room\".RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "b6a29740-1522-4b40-9df5-036087ecafda": {
                  "icon": "https://escolhalivre.org.br/wp-content/uploads/2024/07/excalindraw.png",
                  "name": "Excalidraw Room",
                  "deploy": {
                    "startCommand": "node dist/index.js",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "excalidraw/excalidraw-room@sha256:2fe999f9be4379e3ee282fc45d75d84a691a6383dde33544514cc395287c7a70"
                  },
                  "variables": {
                    "CORS_ORIGIN": {
                      "isOptional": false,
                      "defaultValue": "https://${{Excalidraw.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Excalidraw",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T18:35:24.814Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_80778bbd8ff44464b743",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 52,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Excalidraw Room"
  }
}
