{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b9840995-66b7-45c4-825d-eae92df64729",
    "slug": "hanko",
    "name": "Hanko",
    "description": "Passkey-first authentication server for your own applications",
    "url": "https://railway.com/deploy/hanko",
    "upstream": {
      "image": "axllent/mailpit:latest"
    }
  },
  "services": [
    {
      "name": "elements",
      "source": {
        "image": "ghcr.io/teamhanko/hanko/elements:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "hanko",
      "source": {
        "repo": "https://github.com/gridalpha/hanko-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "quickstart",
      "source": {
        "image": "ghcr.io/teamhanko/hanko/quickstart:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "gateway",
      "source": {
        "repo": "https://github.com/gridalpha/hanko-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "elements",
      "description": "nginx listening port",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE",
      "service": "elements",
      "description": "Size workers from the container quota",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PORT",
      "service": "hanko",
      "description": "Public API port, also the health-check port",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "SECRET_KEYS",
      "service": "hanko",
      "description": "Encrypts stored JWKs, never change",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "hanko",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVICE_NAME",
      "service": "hanko",
      "description": "Name used in outgoing mail",
      "secret": false,
      "strategy": "default",
      "default": "Hanko"
    },
    {
      "key": "FLOWLOCKER_STORE",
      "service": "hanko",
      "description": "Distributed flow locks",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "CORS_ALLOW_ORIGINS",
      "service": "hanko",
      "description": "Browser origins allowed to call the API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "FLOWLOCKER_ENABLED",
      "service": "hanko",
      "description": "One writer per authentication flow",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RATE_LIMITER_STORE",
      "service": "hanko",
      "description": "Share limits across containers",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "RATE_LIMITER_ENABLED",
      "service": "hanko",
      "description": "Rate limit passcode and password attempts",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "EMAIL_DELIVERY_ENABLED",
      "service": "hanko",
      "description": "Send verification mail from Hanko",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "hanko",
      "description": "Selects the backend image in the repo",
      "secret": false,
      "strategy": "default",
      "default": "hanko/Dockerfile"
    },
    {
      "key": "EMAIL_DELIVERY_FROM_NAME",
      "service": "hanko",
      "description": "Sender display name",
      "secret": false,
      "strategy": "default",
      "default": "Hanko"
    },
    {
      "key": "EMAIL_DELIVERY_SMTP_HOST",
      "service": "hanko",
      "description": "SMTP host for passcode mail",
      "secret": false,
      "strategy": "default",
      "default": "mailpit.railway.internal"
    },
    {
      "key": "EMAIL_DELIVERY_SMTP_PORT",
      "service": "hanko",
      "description": "SMTP port for passcode mail",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "FLOWLOCKER_REDIS_ADDRESS",
      "service": "hanko",
      "description": "Redis host and port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FLOWLOCKER_REDIS_PASSWORD",
      "service": "hanko",
      "description": "Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WEBAUTHN_RELYING_PARTY_ID",
      "service": "hanko",
      "description": "Hostname passkeys bind to",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RATE_LIMITER_REDIS_ADDRESS",
      "service": "hanko",
      "description": "Redis host and port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMAIL_DELIVERY_FROM_ADDRESS",
      "service": "hanko",
      "description": "Sender address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RATE_LIMITER_REDIS_PASSWORD",
      "service": "hanko",
      "description": "Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WEBAUTHN_RELYING_PARTY_ORIGINS",
      "service": "hanko",
      "description": "Allowed WebAuthn origins",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "hanko",
      "description": "First boot applies 55 migrations",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "WEBAUTHN_RELYING_PARTY_DISPLAY_NAME",
      "service": "hanko",
      "description": "Name shown by the authenticator",
      "secret": false,
      "strategy": "default",
      "default": "Hanko"
    },
    {
      "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, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Inbox UI port",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Basic auth for the inbox UI",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_DATABASE",
      "service": "mailpit",
      "description": "Message store on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/mailpit.db"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "mailpit",
      "description": "Messages retained before pruning",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MP_UI_BIND_ADDR",
      "service": "mailpit",
      "description": "Inbox UI listener",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:8025"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "mailpit",
      "description": "Private SMTP listener, dual stack",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1025"
    },
    {
      "key": "PORT",
      "service": "quickstart",
      "description": "Example app listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "HANKO_URL",
      "service": "quickstart",
      "description": "Browser-facing Hanko API URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HANKO_ELEMENT_URL",
      "service": "quickstart",
      "description": "Web component bundle URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HANKO_URL_INTERNAL",
      "service": "quickstart",
      "description": "Server-side session validation",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "gateway",
      "description": "Caddy listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "APP_UPSTREAM",
      "service": "gateway",
      "description": "Your application, demo by default",
      "secret": false,
      "strategy": "default",
      "default": "quickstart.railway.internal:8080"
    },
    {
      "key": "HANKO_UPSTREAM",
      "service": "gateway",
      "description": "Hanko public API upstream",
      "secret": false,
      "strategy": "default",
      "default": "hanko.railway.internal:8000"
    },
    {
      "key": "ELEMENTS_UPSTREAM",
      "service": "gateway",
      "description": "Web component asset upstream",
      "secret": false,
      "strategy": "default",
      "default": "elements.railway.internal:80"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "gateway",
      "description": "Selects the gateway image in the repo",
      "secret": false,
      "strategy": "default",
      "default": "gateway/Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "hanko"
      }
    },
    "cli": "railway deploy --template hanko",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b9840995-66b7-45c4-825d-eae92df64729",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "225ebb6c-382d-47a4-8af3-b06141f70faf": {
                  "icon": "https://raw.githubusercontent.com/teamhanko/hanko/main/quickstart/public/assets/img/Favicon_256x256.png",
                  "name": "elements",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/teamhanko/hanko/elements:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "nginx listening port",
                      "defaultValue": "80"
                    },
                    "NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE": {
                      "isOptional": true,
                      "description": "Size workers from the container quota",
                      "defaultValue": "1"
                    }
                  }
                },
                "491bbf3b-7111-4aa4-ba16-054ddc2325a0": {
                  "icon": "https://raw.githubusercontent.com/teamhanko/hanko/main/quickstart/public/assets/img/Favicon_256x256.png",
                  "name": "hanko",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health/ready",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/hanko-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public API port, also the health-check port",
                      "defaultValue": "8000"
                    },
                    "SECRET_KEYS": {
                      "isOptional": false,
                      "description": "Encrypts stored JWKs, never change",
                      "defaultValue": "{{SECRET_KEYS}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "SERVICE_NAME": {
                      "isOptional": true,
                      "description": "Name used in outgoing mail",
                      "defaultValue": "Hanko"
                    },
                    "FLOWLOCKER_STORE": {
                      "isOptional": false,
                      "description": "Distributed flow locks",
                      "defaultValue": "redis"
                    },
                    "CORS_ALLOW_ORIGINS": {
                      "isOptional": false,
                      "description": "Browser origins allowed to call the API",
                      "defaultValue": "https://${{gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "FLOWLOCKER_ENABLED": {
                      "isOptional": true,
                      "description": "One writer per authentication flow",
                      "defaultValue": "true"
                    },
                    "RATE_LIMITER_STORE": {
                      "isOptional": false,
                      "description": "Share limits across containers",
                      "defaultValue": "redis"
                    },
                    "RATE_LIMITER_ENABLED": {
                      "isOptional": true,
                      "description": "Rate limit passcode and password attempts",
                      "defaultValue": "true"
                    },
                    "EMAIL_DELIVERY_ENABLED": {
                      "isOptional": true,
                      "description": "Send verification mail from Hanko",
                      "defaultValue": "true"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the backend image in the repo",
                      "defaultValue": "hanko/Dockerfile"
                    },
                    "EMAIL_DELIVERY_FROM_NAME": {
                      "isOptional": true,
                      "description": "Sender display name",
                      "defaultValue": "Hanko"
                    },
                    "EMAIL_DELIVERY_SMTP_HOST": {
                      "isOptional": false,
                      "description": "SMTP host for passcode mail",
                      "defaultValue": "mailpit.railway.internal"
                    },
                    "EMAIL_DELIVERY_SMTP_PORT": {
                      "isOptional": false,
                      "description": "SMTP port for passcode mail",
                      "defaultValue": "1025"
                    },
                    "FLOWLOCKER_REDIS_ADDRESS": {
                      "isOptional": false,
                      "description": "Redis host and port",
                      "defaultValue": "${{Redis.REDISHOST}}:${{Redis.REDISPORT}}"
                    },
                    "FLOWLOCKER_REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "WEBAUTHN_RELYING_PARTY_ID": {
                      "isOptional": false,
                      "description": "Hostname passkeys bind to",
                      "defaultValue": "${{gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RATE_LIMITER_REDIS_ADDRESS": {
                      "isOptional": false,
                      "description": "Redis host and port",
                      "defaultValue": "${{Redis.REDISHOST}}:${{Redis.REDISPORT}}"
                    },
                    "EMAIL_DELIVERY_FROM_ADDRESS": {
                      "isOptional": true,
                      "description": "Sender address",
                      "defaultValue": "noreply@${{gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RATE_LIMITER_REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "WEBAUTHN_RELYING_PARTY_ORIGINS": {
                      "isOptional": false,
                      "description": "Allowed WebAuthn origins",
                      "defaultValue": "https://${{gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": true,
                      "description": "First boot applies 55 migrations",
                      "defaultValue": "600"
                    },
                    "WEBAUTHN_RELYING_PARTY_DISPLAY_NAME": {
                      "isOptional": true,
                      "description": "Name shown by the authenticator",
                      "defaultValue": "Hanko"
                    }
                  }
                },
                "4d77dda6-01d6-42b4-8d46-3763b464ae2b": {
                  "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, read by the server",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "4d77dda6-01d6-42b4-8d46-3763b464ae2b": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "51d57224-6346-49ee-a946-02eae70519ba": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Inbox UI port",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Basic auth for the inbox UI",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": true,
                      "description": "Messages retained before pruning",
                      "defaultValue": "5000"
                    },
                    "MP_UI_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Inbox UI listener",
                      "defaultValue": "0.0.0.0:8025"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Private SMTP listener, dual stack",
                      "defaultValue": "[::]:1025"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "51d57224-6346-49ee-a946-02eae70519ba": {
                      "mountPath": "/data"
                    }
                  }
                },
                "b4389192-5ae5-49d6-92d6-ec3f6e519c17": {
                  "icon": "https://raw.githubusercontent.com/teamhanko/hanko/main/quickstart/public/assets/img/Favicon_256x256.png",
                  "name": "quickstart",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/teamhanko/hanko/quickstart:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Example app listening port",
                      "defaultValue": "8080"
                    },
                    "HANKO_URL": {
                      "isOptional": false,
                      "description": "Browser-facing Hanko API URL",
                      "defaultValue": "https://${{gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "HANKO_ELEMENT_URL": {
                      "isOptional": false,
                      "description": "Web component bundle URL",
                      "defaultValue": "https://${{gateway.RAILWAY_PUBLIC_DOMAIN}}/elements.js"
                    },
                    "HANKO_URL_INTERNAL": {
                      "isOptional": false,
                      "description": "Server-side session validation",
                      "defaultValue": "http://${{hanko.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    }
                  }
                },
                "cbc6d7bf-4b0e-461f-8f99-030fb8f4fa9a": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "cbc6d7bf-4b0e-461f-8f99-030fb8f4fa9a": {
                      "mountPath": "/data"
                    }
                  }
                },
                "d7503735-d711-48a2-94c8-84719cbbfb28": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "gateway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/hanko-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Caddy listening port",
                      "defaultValue": "8080"
                    },
                    "APP_UPSTREAM": {
                      "isOptional": true,
                      "description": "Your application, demo by default",
                      "defaultValue": "quickstart.railway.internal:8080"
                    },
                    "HANKO_UPSTREAM": {
                      "isOptional": true,
                      "description": "Hanko public API upstream",
                      "defaultValue": "hanko.railway.internal:8000"
                    },
                    "ELEMENTS_UPSTREAM": {
                      "isOptional": true,
                      "description": "Web component asset upstream",
                      "defaultValue": "elements.railway.internal:80"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the gateway image in the repo",
                      "defaultValue": "gateway/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "mailpit",
      "method": "GET",
      "path": "/livez",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 7,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T05:44:27.711Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T05:43:02.185Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ed388d9bffd7466ebfd6",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 117,
    "typical_workflow_seconds": 6,
    "typical_queue_seconds": 20,
    "typical_init_seconds": 0,
    "typical_build_seconds": 0,
    "typical_deploy_seconds": 10,
    "typical_healthcheck_lag_seconds": 0,
    "slowest_service": "quickstart"
  }
}
