{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a30ac138-31c3-4a1c-beef-e92b34f7a303",
    "slug": "mongo-express-ui",
    "name": "Mongo Express",
    "description": "Web admin interface for browsing and editing MongoDB data",
    "url": "https://railway.com/deploy/mongo-express-ui",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/mongo-express-railway"
    }
  },
  "services": [
    {
      "name": "MongoDB",
      "source": {
        "image": "mongo:8.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "http": false
    },
    {
      "name": "mongo-express",
      "source": {
        "repo": "https://github.com/gridalpha/mongo-express-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MONGOHOST",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPORT",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "MONGOUSER",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_URL",
      "service": "MongoDB",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "MongoDB",
      "description": "Root password, read by the entrypoint",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "MongoDB",
      "description": "Root user, read by the entrypoint",
      "secret": false,
      "strategy": "default",
      "default": "mongo"
    },
    {
      "key": "PORT",
      "service": "mongo-express",
      "description": "HTTP port the app listens on",
      "secret": false,
      "strategy": "default",
      "default": "8081"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "mongo-express",
      "description": "Prefer AAAA on private DNS",
      "secret": false,
      "strategy": "default",
      "default": "--dns-result-order=ipv6first"
    },
    {
      "key": "ME_CONFIG_MONGODB_URL",
      "service": "mongo-express",
      "description": "Database this UI administers",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ME_CONFIG_SITE_BASEURL",
      "service": "mongo-express",
      "description": "Path the app is served from",
      "secret": false,
      "strategy": "default",
      "default": "/"
    },
    {
      "key": "ME_CONFIG_AUTH_STRATEGY",
      "service": "mongo-express",
      "description": "Sign-in page; basic or oidc also accepted",
      "secret": false,
      "strategy": "default",
      "default": "form"
    },
    {
      "key": "ME_CONFIG_OPTIONS_READONLY",
      "service": "mongo-express",
      "description": "Refuse every write, server-side",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ME_CONFIG_BASICAUTH_ENABLED",
      "service": "mongo-express",
      "description": "Fallback auth if strategy is unset",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ME_CONFIG_HEALTH_CHECK_PATH",
      "service": "mongo-express",
      "description": "Anonymous health route",
      "secret": false,
      "strategy": "default",
      "default": "/status"
    },
    {
      "key": "ME_CONFIG_OPTIONS_NO_DELETE",
      "service": "mongo-express",
      "description": "Allow edits, refuse deletions",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ME_CONFIG_OPTIONS_NO_EXPORT",
      "service": "mongo-express",
      "description": "Hide the export buttons",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ME_CONFIG_SITE_COOKIESECRET",
      "service": "mongo-express",
      "description": "Signs cookies, keep stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ME_CONFIG_BASICAUTH_PASSWORD",
      "service": "mongo-express",
      "description": "Sign-in password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ME_CONFIG_BASICAUTH_USERNAME",
      "service": "mongo-express",
      "description": "Sign-in username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "ME_CONFIG_DOCUMENTS_PER_PAGE",
      "service": "mongo-express",
      "description": "Collection view page size",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "ME_CONFIG_SITE_SESSIONSECRET",
      "service": "mongo-express",
      "description": "Signs sessions, keep stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ME_CONFIG_SITE_GRIDFS_ENABLED",
      "service": "mongo-express",
      "description": "Show GridFS buckets and files",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ME_CONFIG_MONGODB_ENABLE_ADMIN",
      "service": "mongo-express",
      "description": "List every database, not just one",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ME_CONFIG_MONGODB_WAIT_SECONDS",
      "service": "mongo-express",
      "description": "Boot wait for MongoDB; 0 skips it",
      "secret": false,
      "strategy": "default",
      "default": "180"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "mongo-express",
      "description": "Health check window in seconds",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "ME_CONFIG_MONGODB_ALLOW_DISK_USE",
      "service": "mongo-express",
      "description": "Lift aggregation memory limit",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ME_CONFIG_OPTIONS_CONFIRM_DELETE",
      "service": "mongo-express",
      "description": "Confirmation modal before deleting",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ME_CONFIG_OPTIONS_NO_RAW_COMMAND",
      "service": "mongo-express",
      "description": "Hide the raw command runner",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mongo-express-ui"
      }
    },
    "cli": "railway deploy --template mongo-express-ui",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a30ac138-31c3-4a1c-beef-e92b34f7a303",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1c109413-e669-4167-afbd-e849014ee57c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mongodb.svg",
                  "name": "MongoDB",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --setParameter diagnosticDataCollectionEnabled=false",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mongo:8.0"
                  },
                  "variables": {
                    "MONGOHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MONGOPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "27017"
                    },
                    "MONGOUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{MONGO_INITDB_ROOT_USERNAME}}"
                    },
                    "MONGO_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017"
                    },
                    "MONGOPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password, read by the entrypoint",
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": false,
                      "description": "Root user, read by the entrypoint",
                      "defaultValue": "mongo"
                    }
                  },
                  "volumeMounts": {
                    "1c109413-e669-4167-afbd-e849014ee57c": {
                      "mountPath": "/data/db"
                    }
                  }
                },
                "7b8adf13-58b3-4a49-bcb9-d3d891496f20": {
                  "icon": "https://cdn.jsdelivr.net/gh/mongo-express/mongo-express@master/public/images/mongo-express-logo.svg",
                  "name": "mongo-express",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/status",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/mongo-express-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port the app listens on",
                      "defaultValue": "8081"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Prefer AAAA on private DNS",
                      "defaultValue": "--dns-result-order=ipv6first"
                    },
                    "ME_CONFIG_MONGODB_URL": {
                      "isOptional": false,
                      "description": "Database this UI administers",
                      "defaultValue": "${{MongoDB.MONGO_URL}}"
                    },
                    "ME_CONFIG_SITE_BASEURL": {
                      "isOptional": true,
                      "description": "Path the app is served from",
                      "defaultValue": "/"
                    },
                    "ME_CONFIG_AUTH_STRATEGY": {
                      "isOptional": false,
                      "description": "Sign-in page; basic or oidc also accepted",
                      "defaultValue": "form"
                    },
                    "ME_CONFIG_OPTIONS_READONLY": {
                      "isOptional": true,
                      "description": "Refuse every write, server-side",
                      "defaultValue": "false"
                    },
                    "ME_CONFIG_BASICAUTH_ENABLED": {
                      "isOptional": false,
                      "description": "Fallback auth if strategy is unset",
                      "defaultValue": "true"
                    },
                    "ME_CONFIG_HEALTH_CHECK_PATH": {
                      "isOptional": true,
                      "description": "Anonymous health route",
                      "defaultValue": "/status"
                    },
                    "ME_CONFIG_OPTIONS_NO_DELETE": {
                      "isOptional": true,
                      "description": "Allow edits, refuse deletions",
                      "defaultValue": "false"
                    },
                    "ME_CONFIG_OPTIONS_NO_EXPORT": {
                      "isOptional": true,
                      "description": "Hide the export buttons",
                      "defaultValue": "false"
                    },
                    "ME_CONFIG_SITE_COOKIESECRET": {
                      "isOptional": false,
                      "description": "Signs cookies, keep stable",
                      "defaultValue": "{{ME_CONFIG_SITE_COOKIESECRET}}"
                    },
                    "ME_CONFIG_BASICAUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "Sign-in password",
                      "defaultValue": "{{ME_CONFIG_BASICAUTH_PASSWORD}}"
                    },
                    "ME_CONFIG_BASICAUTH_USERNAME": {
                      "isOptional": false,
                      "description": "Sign-in username",
                      "defaultValue": "admin"
                    },
                    "ME_CONFIG_DOCUMENTS_PER_PAGE": {
                      "isOptional": true,
                      "description": "Collection view page size",
                      "defaultValue": "10"
                    },
                    "ME_CONFIG_SITE_SESSIONSECRET": {
                      "isOptional": false,
                      "description": "Signs sessions, keep stable",
                      "defaultValue": "{{ME_CONFIG_SITE_SESSIONSECRET}}"
                    },
                    "ME_CONFIG_SITE_GRIDFS_ENABLED": {
                      "isOptional": true,
                      "description": "Show GridFS buckets and files",
                      "defaultValue": "true"
                    },
                    "ME_CONFIG_MONGODB_ENABLE_ADMIN": {
                      "isOptional": false,
                      "description": "List every database, not just one",
                      "defaultValue": "true"
                    },
                    "ME_CONFIG_MONGODB_WAIT_SECONDS": {
                      "isOptional": true,
                      "description": "Boot wait for MongoDB; 0 skips it",
                      "defaultValue": "180"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Health check window in seconds",
                      "defaultValue": "300"
                    },
                    "ME_CONFIG_MONGODB_ALLOW_DISK_USE": {
                      "isOptional": true,
                      "description": "Lift aggregation memory limit",
                      "defaultValue": "false"
                    },
                    "ME_CONFIG_OPTIONS_CONFIRM_DELETE": {
                      "isOptional": true,
                      "description": "Confirmation modal before deleting",
                      "defaultValue": "true"
                    },
                    "ME_CONFIG_OPTIONS_NO_RAW_COMMAND": {
                      "isOptional": true,
                      "description": "Hide the raw command runner",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8081": {
                        "port": 8081
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "mongo-express",
      "method": "GET",
      "path": "/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T10:14:39.124Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-15T07:26:00.115Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2c1e9ff17cb54e27a4f9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 88,
    "typical_build_seconds": 61,
    "typical_start_seconds": 10,
    "slowest_service": "mongo-express"
  }
}
