{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4bbec048-a34f-45f6-8006-ab86af5f39f1",
    "slug": "excalidraw-whiteboard",
    "name": "Excalidraw",
    "description": "Miro Alternative. Open-source whiteboard with real-time collaboration",
    "url": "https://railway.com/deploy/excalidraw-whiteboard",
    "upstream": {
      "image": "ghcr.io/kitsteam/excalidraw-storage-backend:latest"
    }
  },
  "services": [
    {
      "name": "storage",
      "source": {
        "image": "ghcr.io/kitsteam/excalidraw-storage-backend:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "excalidraw",
      "source": {
        "image": "alswl/excalidraw:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "room",
      "source": {
        "image": "ghcr.io/kitsteam/excalidraw-room:latest"
      },
      "needs_volume": false,
      "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": "storage",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "LOG_LEVEL",
      "service": "storage",
      "description": "Application log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "log"
    },
    {
      "key": "BODY_LIMIT",
      "service": "storage",
      "description": "Max scene or image upload size",
      "secret": false,
      "strategy": "default",
      "default": "50mb"
    },
    {
      "key": "STORAGE_TTL",
      "service": "storage",
      "description": "Entry lifetime, ms (~10 years)",
      "secret": false,
      "strategy": "default",
      "default": "315360000000"
    },
    {
      "key": "STORAGE_URI",
      "service": "storage",
      "description": "PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "storage",
      "description": "Node heap ceiling in MB",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=1024"
    },
    {
      "key": "GLOBAL_PREFIX",
      "service": "storage",
      "description": "Route prefix for every endpoint",
      "secret": false,
      "strategy": "default",
      "default": "/api/v2"
    },
    {
      "key": "ENABLE_POSTGRES_TTL_SERVICE",
      "service": "storage",
      "description": "Daily cleanup of expired rows",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "excalidraw",
      "description": "nginx listen port, used by health check",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "VITE_APP_AI_BACKEND",
      "service": "excalidraw",
      "description": "Optional text-to-diagram endpoint",
      "secret": false,
      "strategy": "default",
      "default": "https://oss-ai.excalidraw.com"
    },
    {
      "key": "VITE_APP_WS_SERVER_URL",
      "service": "excalidraw",
      "description": "Collaboration server URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "VITE_APP_DISABLE_SENTRY",
      "service": "excalidraw",
      "description": "No error reporting upstream",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "VITE_APP_ENABLE_TRACKING",
      "service": "excalidraw",
      "description": "No analytics from the app",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "VITE_APP_FIREBASE_CONFIG",
      "service": "excalidraw",
      "description": "Disables Excalidraw's hosted Firebase",
      "secret": false,
      "strategy": "default",
      "default": "{}"
    },
    {
      "key": "VITE_APP_STORAGE_BACKEND",
      "service": "excalidraw",
      "description": "Use HTTP storage, not Firebase",
      "secret": false,
      "strategy": "default",
      "default": "http"
    },
    {
      "key": "VITE_APP_DISABLE_TRACKING",
      "service": "excalidraw",
      "description": "No analytics from the app",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "VITE_APP_BACKEND_V2_GET_URL",
      "service": "excalidraw",
      "description": "Share link read endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "VITE_APP_BACKEND_V2_POST_URL",
      "service": "excalidraw",
      "description": "Share link write endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "VITE_APP_HTTP_STORAGE_BACKEND_URL",
      "service": "excalidraw",
      "description": "Rooms and files API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "room",
      "description": "Port the bundled process manager binds",
      "secret": false,
      "strategy": "default",
      "default": "8090"
    },
    {
      "key": "CORS_ORIGIN",
      "service": "room",
      "description": "Allowed Socket.IO origin",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "room",
      "description": "Node heap ceiling in MB",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=1024"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "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": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "excalidraw-whiteboard"
      }
    },
    "cli": "railway deploy --template excalidraw-whiteboard",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4bbec048-a34f-45f6-8006-ab86af5f39f1",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3bf00440-98b1-4e7a-a4e5-ebd5c5c248e9": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/excalidraw.svg",
                  "name": "storage",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v2/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/kitsteam/excalidraw-storage-backend:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "8080"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Application log verbosity",
                      "defaultValue": "log"
                    },
                    "BODY_LIMIT": {
                      "isOptional": false,
                      "description": "Max scene or image upload size",
                      "defaultValue": "50mb"
                    },
                    "STORAGE_TTL": {
                      "isOptional": false,
                      "description": "Entry lifetime, ms (~10 years)",
                      "defaultValue": "315360000000"
                    },
                    "STORAGE_URI": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap ceiling in MB",
                      "defaultValue": "--max-old-space-size=1024"
                    },
                    "GLOBAL_PREFIX": {
                      "isOptional": false,
                      "description": "Route prefix for every endpoint",
                      "defaultValue": "/api/v2"
                    },
                    "ENABLE_POSTGRES_TTL_SERVICE": {
                      "isOptional": false,
                      "description": "Daily cleanup of expired rows",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "c4c0c810-88a7-4aaf-ac86-9c14c9f312c7": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/excalidraw.svg",
                  "name": "excalidraw",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "alswl/excalidraw:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "nginx listen port, used by health check",
                      "defaultValue": "80"
                    },
                    "VITE_APP_AI_BACKEND": {
                      "isOptional": false,
                      "description": "Optional text-to-diagram endpoint",
                      "defaultValue": "https://oss-ai.excalidraw.com"
                    },
                    "VITE_APP_WS_SERVER_URL": {
                      "isOptional": false,
                      "description": "Collaboration server URL",
                      "defaultValue": "https://${{room.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "VITE_APP_DISABLE_SENTRY": {
                      "isOptional": false,
                      "description": "No error reporting upstream",
                      "defaultValue": "true"
                    },
                    "VITE_APP_ENABLE_TRACKING": {
                      "isOptional": false,
                      "description": "No analytics from the app",
                      "defaultValue": "false"
                    },
                    "VITE_APP_FIREBASE_CONFIG": {
                      "isOptional": false,
                      "description": "Disables Excalidraw's hosted Firebase",
                      "defaultValue": "{}"
                    },
                    "VITE_APP_STORAGE_BACKEND": {
                      "isOptional": false,
                      "description": "Use HTTP storage, not Firebase",
                      "defaultValue": "http"
                    },
                    "VITE_APP_DISABLE_TRACKING": {
                      "isOptional": false,
                      "description": "No analytics from the app",
                      "defaultValue": "true"
                    },
                    "VITE_APP_BACKEND_V2_GET_URL": {
                      "isOptional": false,
                      "description": "Share link read endpoint",
                      "defaultValue": "https://${{storage.RAILWAY_PUBLIC_DOMAIN}}/api/v2/scenes/"
                    },
                    "VITE_APP_BACKEND_V2_POST_URL": {
                      "isOptional": false,
                      "description": "Share link write endpoint",
                      "defaultValue": "https://${{storage.RAILWAY_PUBLIC_DOMAIN}}/api/v2/scenes/"
                    },
                    "VITE_APP_HTTP_STORAGE_BACKEND_URL": {
                      "isOptional": false,
                      "description": "Rooms and files API",
                      "defaultValue": "https://${{storage.RAILWAY_PUBLIC_DOMAIN}}/api/v2"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  }
                },
                "d11bb990-3d5e-4dfe-8ede-5ada2f6ef43c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/excalidraw.svg",
                  "name": "room",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/kitsteam/excalidraw-room:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the bundled process manager binds",
                      "defaultValue": "8090"
                    },
                    "CORS_ORIGIN": {
                      "isOptional": false,
                      "description": "Allowed Socket.IO origin",
                      "defaultValue": "https://${{excalidraw.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap ceiling in MB",
                      "defaultValue": "--max-old-space-size=1024"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8090": {
                        "port": 8090
                      }
                    }
                  }
                },
                "f4b8998c-69c4-499d-8758-f07a56ccf5fd": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "f4b8998c-69c4-499d-8758-f07a56ccf5fd": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "storage",
      "method": "GET",
      "path": "/api/v2/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T16:21:12.179Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_eccf0537285246cd9456",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 56,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "excalidraw"
  }
}
