{
  "manifest_version": "1.0.0",
  "template": {
    "id": "295bd551-1320-49a3-9edf-4a7b6db6cdef",
    "slug": "wekan",
    "name": "Wekan",
    "description": "Trello alternative. Open-source kanban board",
    "url": "https://railway.com/deploy/wekan",
    "upstream": {
      "image": "ghcr.io/wekan/wekan:v10.95"
    }
  },
  "services": [
    {
      "name": "mongodb",
      "source": {
        "repo": "https://github.com/gridalpha/wekan-mongodb-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "http": false
    },
    {
      "name": "wekan",
      "source": {
        "image": "ghcr.io/wekan/wekan:v10.95"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MONGODB_DATABASE",
      "service": "mongodb",
      "description": "Application database name",
      "secret": false,
      "strategy": "default",
      "default": "wekan"
    },
    {
      "key": "MONGODB_PORT_NUMBER",
      "service": "mongodb",
      "description": "MongoDB listening port",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "MONGODB_APP_PASSWORD",
      "service": "mongodb",
      "description": "WeKan application user password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGODB_APP_USERNAME",
      "service": "mongodb",
      "description": "Least-privilege application user",
      "secret": false,
      "strategy": "default",
      "default": "wekan"
    },
    {
      "key": "MONGODB_ROOT_PASSWORD",
      "service": "mongodb",
      "description": "MongoDB root user password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGODB_REPLICA_SET_NAME",
      "service": "mongodb",
      "description": "Replica set name",
      "secret": false,
      "strategy": "default",
      "default": "rs0"
    },
    {
      "key": "PORT",
      "service": "wekan",
      "description": "HTTP listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ROOT_URL",
      "service": "wekan",
      "description": "Public app URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WEKAN_DB",
      "service": "wekan",
      "description": "Use external MongoDB, not bundled",
      "secret": false,
      "strategy": "default",
      "default": "mongodb"
    },
    {
      "key": "WITH_API",
      "service": "wekan",
      "description": "Enable the REST API",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MONGO_URL",
      "service": "wekan",
      "description": "Application database connection",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "wekan",
      "description": "Cap the Node heap size",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=4096"
    },
    {
      "key": "WRITABLE_PATH",
      "service": "wekan",
      "description": "Attachment and avatar directory",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "MONGO_OPLOG_URL",
      "service": "wekan",
      "description": "OpLog tailing connection",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "wekan",
      "description": "Start as root to chown the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "WEKAN_DB_WAIT_PAGE",
      "service": "wekan",
      "description": "Serve wait page until database ready",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "HTTP_FORWARDED_COUNT",
      "service": "wekan",
      "description": "Proxy hops for real client IPs",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "METEOR_REACTIVITY_ORDER",
      "service": "wekan",
      "description": "Realtime driver preference order",
      "secret": false,
      "strategy": "default",
      "default": "changeStreams,oplog,polling"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "wekan"
      }
    },
    "cli": "railway deploy --template wekan",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "295bd551-1320-49a3-9edf-4a7b6db6cdef",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2c26267d-06c7-4171-a5c9-81c3556a17ef": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mongodb.svg",
                  "name": "mongodb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/wekan-mongodb-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "MONGODB_DATABASE": {
                      "isOptional": false,
                      "description": "Application database name",
                      "defaultValue": "wekan"
                    },
                    "MONGODB_PORT_NUMBER": {
                      "isOptional": false,
                      "description": "MongoDB listening port",
                      "defaultValue": "27017"
                    },
                    "MONGODB_APP_PASSWORD": {
                      "isOptional": false,
                      "description": "WeKan application user password",
                      "defaultValue": "{{MONGODB_APP_PASSWORD}}"
                    },
                    "MONGODB_APP_USERNAME": {
                      "isOptional": false,
                      "description": "Least-privilege application user",
                      "defaultValue": "wekan"
                    },
                    "MONGODB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "MongoDB root user password",
                      "defaultValue": "{{MONGODB_ROOT_PASSWORD}}"
                    },
                    "MONGODB_REPLICA_SET_NAME": {
                      "isOptional": false,
                      "description": "Replica set name",
                      "defaultValue": "rs0"
                    }
                  },
                  "volumeMounts": {
                    "2c26267d-06c7-4171-a5c9-81c3556a17ef": {
                      "mountPath": "/data/db"
                    }
                  }
                },
                "af6d2e8e-df3d-4b0e-99e5-768c4cd0d14b": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/wekan.svg",
                  "name": "wekan",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'mkdir -p /data && chown -R wekan:wekan /data && export HOME=/home/wekan && setpriv --reuid=wekan --regid=wekan --init-groups id && exec setpriv --reuid=wekan --regid=wekan --init-groups bash /build/wekan-entrypoint.sh'",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/wekan/wekan:v10.95"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listening port",
                      "defaultValue": "8080"
                    },
                    "ROOT_URL": {
                      "isOptional": false,
                      "description": "Public app URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "WEKAN_DB": {
                      "isOptional": false,
                      "description": "Use external MongoDB, not bundled",
                      "defaultValue": "mongodb"
                    },
                    "WITH_API": {
                      "isOptional": false,
                      "description": "Enable the REST API",
                      "defaultValue": "true"
                    },
                    "MONGO_URL": {
                      "isOptional": false,
                      "description": "Application database connection",
                      "defaultValue": "mongodb://${{mongodb.MONGODB_APP_USERNAME}}:${{mongodb.MONGODB_APP_PASSWORD}}@${{mongodb.RAILWAY_PRIVATE_DOMAIN}}:${{mongodb.MONGODB_PORT_NUMBER}}/${{mongodb.MONGODB_DATABASE}}?authSource=admin&directConnection=true"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Cap the Node heap size",
                      "defaultValue": "--max-old-space-size=4096"
                    },
                    "WRITABLE_PATH": {
                      "isOptional": false,
                      "description": "Attachment and avatar directory",
                      "defaultValue": "/data"
                    },
                    "MONGO_OPLOG_URL": {
                      "isOptional": false,
                      "description": "OpLog tailing connection",
                      "defaultValue": "mongodb://${{mongodb.MONGODB_APP_USERNAME}}:${{mongodb.MONGODB_APP_PASSWORD}}@${{mongodb.RAILWAY_PRIVATE_DOMAIN}}:${{mongodb.MONGODB_PORT_NUMBER}}/local?authSource=admin&directConnection=true"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Start as root to chown the volume",
                      "defaultValue": "0"
                    },
                    "WEKAN_DB_WAIT_PAGE": {
                      "isOptional": false,
                      "description": "Serve wait page until database ready",
                      "defaultValue": "true"
                    },
                    "HTTP_FORWARDED_COUNT": {
                      "isOptional": false,
                      "description": "Proxy hops for real client IPs",
                      "defaultValue": "2"
                    },
                    "METEOR_REACTIVITY_ORDER": {
                      "isOptional": false,
                      "description": "Realtime driver preference order",
                      "defaultValue": "changeStreams,oplog,polling"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "af6d2e8e-df3d-4b0e-99e5-768c4cd0d14b": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "wekan",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T12:44:31.988Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_1f4554faca3d4980b544",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 97,
    "typical_build_seconds": 0,
    "typical_start_seconds": 30,
    "slowest_service": "wekan"
  }
}
