{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1b67dba0-efa4-4709-b056-ef2a93f5851a",
    "slug": "lldap-directory-server",
    "name": "LLDAP directory server",
    "description": "Lightweight LDAP identity management with durable SQLite data.",
    "url": "https://railway.com/deploy/lldap-directory-server",
    "upstream": {
      "image": "lldap/lldap:v0.6.3@sha256:2a8454b668c1aba7157e832eab0e242e1e7eb5fb7591d7e7774ba05286511ca8"
    }
  },
  "services": [
    {
      "name": "LLDAP",
      "source": {
        "image": "lldap/lldap:v0.6.3@sha256:2a8454b668c1aba7157e832eab0e242e1e7eb5fb7591d7e7774ba05286511ca8"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "LLDAP",
      "description": "Timezone used in LLDAP logs and directory operations.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "LLDAP",
      "description": "Public web administration listener.",
      "secret": false,
      "strategy": "default",
      "default": "17170"
    },
    {
      "key": "LLDAP_HTTP_URL",
      "service": "LLDAP",
      "description": "Public HTTPS origin used by LLDAP.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LLDAP_KEY_SEED",
      "service": "LLDAP",
      "description": "Generated seed used to encrypt directory secrets.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LLDAP_HTTP_PORT",
      "service": "LLDAP",
      "description": "HTTP port for the web administration console.",
      "secret": false,
      "strategy": "default",
      "default": "17170"
    },
    {
      "key": "LLDAP_LDAP_PORT",
      "service": "LLDAP",
      "description": "Private LDAP listener for project services.",
      "secret": false,
      "strategy": "default",
      "default": "3890"
    },
    {
      "key": "LLDAP_JWT_SECRET",
      "service": "LLDAP",
      "description": "Generated secret used to sign web sessions.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LLDAP_LDAP_BASE_DN",
      "service": "LLDAP",
      "description": "Root distinguished name for the directory.",
      "secret": false,
      "strategy": "default",
      "default": "dc=example,dc=com"
    },
    {
      "key": "LLDAP_LDAP_USER_DN",
      "service": "LLDAP",
      "description": "Initial administrator login name.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "LLDAP_LDAP_USER_PASS",
      "service": "LLDAP",
      "description": "Generated initial administrator password.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LLDAP_LDAP_USER_EMAIL",
      "service": "LLDAP",
      "description": "Initial administrator email address.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "lldap-directory-server"
      }
    },
    "cli": "railway deploy --template lldap-directory-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1b67dba0-efa4-4709-b056-ef2a93f5851a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "49f8d678-d1cf-4ee3-9ae8-0a42dcc4d4d8": {
                  "icon": null,
                  "name": "LLDAP",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "lldap/lldap:v0.6.3@sha256:2a8454b668c1aba7157e832eab0e242e1e7eb5fb7591d7e7774ba05286511ca8"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone used in LLDAP logs and directory operations.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Public web administration listener.",
                      "defaultValue": "17170"
                    },
                    "LLDAP_HTTP_URL": {
                      "isOptional": false,
                      "description": "Public HTTPS origin used by LLDAP.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LLDAP_KEY_SEED": {
                      "isOptional": false,
                      "description": "Generated seed used to encrypt directory secrets.",
                      "defaultValue": "{{LLDAP_KEY_SEED}}"
                    },
                    "LLDAP_HTTP_PORT": {
                      "isOptional": false,
                      "description": "HTTP port for the web administration console.",
                      "defaultValue": "17170"
                    },
                    "LLDAP_LDAP_PORT": {
                      "isOptional": false,
                      "description": "Private LDAP listener for project services.",
                      "defaultValue": "3890"
                    },
                    "LLDAP_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Generated secret used to sign web sessions.",
                      "defaultValue": "{{LLDAP_JWT_SECRET}}"
                    },
                    "LLDAP_LDAP_BASE_DN": {
                      "isOptional": false,
                      "description": "Root distinguished name for the directory.",
                      "defaultValue": "dc=example,dc=com"
                    },
                    "LLDAP_LDAP_USER_DN": {
                      "isOptional": false,
                      "description": "Initial administrator login name.",
                      "defaultValue": "admin"
                    },
                    "LLDAP_LDAP_USER_PASS": {
                      "isOptional": false,
                      "description": "Generated initial administrator password.",
                      "defaultValue": "{{LLDAP_LDAP_USER_PASS}}"
                    },
                    "LLDAP_LDAP_USER_EMAIL": {
                      "isOptional": false,
                      "description": "Initial administrator email address.",
                      "defaultValue": "admin@example.com"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 17170
                      }
                    }
                  },
                  "volumeMounts": {
                    "49f8d678-d1cf-4ee3-9ae8-0a42dcc4d4d8": {
                      "sizeMB": 5000,
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "LLDAP",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T18:39:50.715Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_003c74672605458e8f81",
    "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": 10,
    "slowest_service": "LLDAP"
  }
}
