{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fa9e67a8-e99c-463f-87b0-25eeee24a5d6",
    "slug": "mongodb-with-ui",
    "name": "MongoDB with UI",
    "description": "MongoDB with visual database management, ready to deploy in 1 click.",
    "url": "https://railway.com/deploy/mongodb-with-ui",
    "upstream": {
      "image": "mongo-express:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Mongo Express",
      "source": {
        "image": "mongo-express:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "MongoDB",
      "source": {
        "image": "mongo:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "tcp_ports": [
        27017
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Mongo Express",
      "description": "Railway public service port for Mongo Express",
      "secret": false,
      "strategy": "default",
      "default": "8081"
    },
    {
      "key": "MONGOHOST",
      "service": "Mongo Express",
      "description": "MongoDB host reference from the MongoDB service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGOPORT",
      "service": "Mongo Express",
      "description": "MongoDB port reference from the MongoDB service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGOUSER",
      "service": "Mongo Express",
      "description": "MongoDB username used by Mongo Express",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_URL",
      "service": "Mongo Express",
      "description": "MongoDB connection URI from the MongoDB service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "Mongo Express",
      "description": "MongoDB password used by Mongo Express",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ME_CONFIG_MONGODB_URL",
      "service": "Mongo Express",
      "description": "MongoDB connection URI used internally by Mongo Express",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ME_CONFIG_BASICAUTH_PASSWORD",
      "service": "Mongo Express",
      "description": "Required: password for accessing the Mongo Express web UI",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ME_CONFIG_BASICAUTH_USERNAME",
      "service": "Mongo Express",
      "description": "Required: username for accessing the Mongo Express web UI",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MONGOHOST",
      "service": "MongoDB",
      "description": "Public MongoDB hostname provided by Railway TCP Proxy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGOPORT",
      "service": "MongoDB",
      "description": "Public MongoDB port provided by Railway TCP Proxy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGOUSER",
      "service": "MongoDB",
      "description": "MongoDB root username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_URL",
      "service": "MongoDB",
      "description": "Public MongoDB connection URI",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "MongoDB",
      "description": "MongoDB root password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGOHOST_PRIVATE",
      "service": "MongoDB",
      "description": "MongoDB private hostname within the Railway project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPORT_PRIVATE",
      "service": "MongoDB",
      "description": "MongoDB default private service port",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "MONGO_PRIVATE_URL",
      "service": "MongoDB",
      "description": "Private MongoDB connection URI for internal Railway services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "MongoDB",
      "description": "Auto-generated MongoDB root password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "MongoDB",
      "description": "MongoDB root username created during initialization",
      "secret": false,
      "strategy": "default",
      "default": "mongo"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mongodb-with-ui"
      }
    },
    "cli": "railway deploy --template mongodb-with-ui",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fa9e67a8-e99c-463f-87b0-25eeee24a5d6",
            "serializedConfig": {
              "services": {
                "204b6b8b-2b72-4df0-bb40-a59f996c9a19": {
                  "icon": "https://raw.githubusercontent.com/docker-library/docs/b9077663f53d2a5f3ce3ce52c9249d4b0c684fd9/mongo-express/logo.png",
                  "name": "Mongo Express",
                  "source": {
                    "image": "mongo-express:latest"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Railway public service port for Mongo Express",
                      "defaultValue": "8081"
                    },
                    "MONGOHOST": {
                      "description": "MongoDB host reference from the MongoDB service",
                      "defaultValue": "${{MongoDB.MONGOHOST}}"
                    },
                    "MONGOPORT": {
                      "description": "MongoDB port reference from the MongoDB service",
                      "defaultValue": "${{MongoDB.MONGOPORT}}"
                    },
                    "MONGOUSER": {
                      "description": "MongoDB username used by Mongo Express",
                      "defaultValue": "${{MongoDB.MONGOUSER}}"
                    },
                    "MONGO_URL": {
                      "description": "MongoDB connection URI from the MongoDB service",
                      "defaultValue": "${{MongoDB.MONGO_URL}}"
                    },
                    "MONGOPASSWORD": {
                      "description": "MongoDB password used by Mongo Express",
                      "defaultValue": "${{MongoDB.MONGOPASSWORD}}"
                    },
                    "ME_CONFIG_MONGODB_URL": {
                      "description": "MongoDB connection URI used internally by Mongo Express",
                      "defaultValue": "${{MONGO_URL}}"
                    },
                    "ME_CONFIG_BASICAUTH_PASSWORD": {
                      "description": "Required: password for accessing the Mongo Express web UI",
                      "defaultValue": "{{ME_CONFIG_BASICAUTH_PASSWORD}}"
                    },
                    "ME_CONFIG_BASICAUTH_USERNAME": {
                      "description": "Required: username for accessing the Mongo Express web UI",
                      "defaultValue": "{{ME_CONFIG_BASICAUTH_USERNAME}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8081": {
                        "port": 8081
                      }
                    }
                  }
                },
                "9a1007b1-d0bb-4be7-a456-251ab28af424": {
                  "icon": "https://devicons.railway.app/mongo",
                  "name": "MongoDB",
                  "source": {
                    "image": "mongo:latest"
                  },
                  "variables": {
                    "MONGOHOST": {
                      "description": "Public MongoDB hostname provided by Railway TCP Proxy",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "MONGOPORT": {
                      "description": "Public MongoDB port provided by Railway TCP Proxy",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "MONGOUSER": {
                      "description": "MongoDB root username",
                      "defaultValue": "${{MONGO_INITDB_ROOT_USERNAME}}"
                    },
                    "MONGO_URL": {
                      "description": "Public MongoDB connection URI",
                      "defaultValue": "mongodb://${{MONGOUSER}}:${{MONGOPASSWORD}}@${{MONGOHOST}}:${{MONGOPORT}}"
                    },
                    "MONGOPASSWORD": {
                      "description": "MongoDB root password",
                      "defaultValue": "${{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGOHOST_PRIVATE": {
                      "description": "MongoDB private hostname within the Railway project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MONGOPORT_PRIVATE": {
                      "description": "MongoDB default private service port",
                      "defaultValue": "27017"
                    },
                    "MONGO_PRIVATE_URL": {
                      "description": "Private MongoDB connection URI for internal Railway services",
                      "defaultValue": "mongodb://${{MONGOUSER}}:${{MONGOPASSWORD}}@${{MONGOHOST_PRIVATE}}:${{MONGOPORT_PRIVATE}}"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "description": "Auto-generated MongoDB root password",
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "description": "MongoDB root username created during initialization",
                      "defaultValue": "mongo"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "27017": {}
                    }
                  },
                  "volumeMounts": {
                    "9a1007b1-d0bb-4be7-a456-251ab28af424": {
                      "mountPath": "/data/db"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
