{
  "manifest_version": "1.0.0",
  "template": {
    "id": "10c73fdf-d68e-484c-a5a6-70180423073a",
    "slug": "nhost",
    "name": "NHOST",
    "description": "Backend for apps: database, GraphQL API, logins and file uploads",
    "url": "https://railway.com/deploy/nhost",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/nhost-railway"
    }
  },
  "services": [
    {
      "name": "storage",
      "source": {
        "repo": "https://github.com/gridalpha/nhost-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "auth",
      "source": {
        "image": "nhost/auth:0.40.2"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "dashboard",
      "source": {
        "repo": "https://github.com/gridalpha/nhost-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "functions",
      "source": {
        "repo": "https://github.com/gridalpha/nhost-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "graphql",
      "source": {
        "repo": "https://github.com/gridalpha/nhost-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "mailhog",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "BIND",
      "service": "storage",
      "description": "Listen address inside the container",
      "secret": false,
      "strategy": "default",
      "default": ":5000"
    },
    {
      "key": "PORT",
      "service": "storage",
      "description": "Port Railway probes and routes to",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "S3_BUCKET",
      "service": "storage",
      "description": "Bucket uploaded files go to",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "storage",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PUBLIC_URL",
      "service": "storage",
      "description": "Base URL used in presigned links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "storage",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "storage",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "storage",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "API_ROOT_PREFIX",
      "service": "storage",
      "description": "Path prefix for every storage route",
      "secret": false,
      "strategy": "default",
      "default": "/v1"
    },
    {
      "key": "HASURA_ENDPOINT",
      "service": "storage",
      "description": "Private Hasura endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "HASURA_METADATA",
      "service": "storage",
      "description": "Register storage tables in Hasura",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "LOG_FORMAT_TEXT",
      "service": "storage",
      "description": "Human-readable log lines",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CORS_ALLOW_ORIGINS",
      "service": "storage",
      "description": "Browser origins allowed to upload",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "POSTGRES_MIGRATIONS",
      "service": "storage",
      "description": "Run storage schema migrations",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "storage",
      "description": "Build file for this service",
      "secret": false,
      "strategy": "default",
      "default": "storage/Dockerfile"
    },
    {
      "key": "POSTGRES_MIGRATIONS_SOURCE",
      "service": "storage",
      "description": "Connection used for migrations",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HASURA_GRAPHQL_ADMIN_SECRET",
      "service": "storage",
      "description": "Admin key for metadata calls",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "storage",
      "description": "Shutdown window before SIGKILL",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "PORT",
      "service": "auth",
      "description": "Port Railway probes and routes to",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "AUTH_HOST",
      "service": "auth",
      "description": "Listen address inside the container",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "AUTH_PORT",
      "service": "auth",
      "description": "Port the auth service listens on",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "AUTH_LOG_LEVEL",
      "service": "auth",
      "description": "Auth service log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "AUTH_SMTP_HOST",
      "service": "auth",
      "description": "SMTP host; must stay this literal name",
      "secret": false,
      "strategy": "default",
      "default": "mailhog"
    },
    {
      "key": "AUTH_SMTP_PASS",
      "service": "auth",
      "description": "SMTP password, shared with mailhog",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTH_SMTP_PORT",
      "service": "auth",
      "description": "SMTP port on the mail service",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "AUTH_SMTP_USER",
      "service": "auth",
      "description": "SMTP username",
      "secret": false,
      "strategy": "default",
      "default": "nhost"
    },
    {
      "key": "AUTH_API_PREFIX",
      "service": "auth",
      "description": "Path prefix for every auth route",
      "secret": false,
      "strategy": "default",
      "default": "/v1"
    },
    {
      "key": "AUTH_CLIENT_URL",
      "service": "auth",
      "description": "Where email links send the user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AUTH_SERVER_URL",
      "service": "auth",
      "description": "Public base URL used in email links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AUTH_MFA_ENABLED",
      "service": "auth",
      "description": "Enable TOTP multi-factor auth",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AUTH_SMTP_SECURE",
      "service": "auth",
      "description": "Plain connection on the private network",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AUTH_SMTP_SENDER",
      "service": "auth",
      "description": "From address on outgoing mail",
      "secret": false,
      "strategy": "default",
      "default": "auth@nhost.local"
    },
    {
      "key": "AUTH_CONCEAL_ERRORS",
      "service": "auth",
      "description": "Return detailed API errors",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AUTH_DISABLE_SIGNUP",
      "service": "auth",
      "description": "Set true to close public registration",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AUTH_ENCRYPTION_KEY",
      "service": "auth",
      "description": "Encrypts stored OAuth and TOTP secrets",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AUTH_LOCALE_DEFAULT",
      "service": "auth",
      "description": "Default locale for emails",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "AUTH_GRAVATAR_RATING",
      "service": "auth",
      "description": "Maximum Gravatar content rating",
      "secret": false,
      "strategy": "default",
      "default": "g"
    },
    {
      "key": "AUTH_GRAVATAR_DEFAULT",
      "service": "auth",
      "description": "Fallback avatar style",
      "secret": false,
      "strategy": "default",
      "default": "blank"
    },
    {
      "key": "AUTH_GRAVATAR_ENABLED",
      "service": "auth",
      "description": "Generate Gravatar avatar URLs",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AUTH_SMTP_AUTH_METHOD",
      "service": "auth",
      "description": "SMTP authentication mechanism",
      "secret": false,
      "strategy": "default",
      "default": "LOGIN"
    },
    {
      "key": "AUTH_DISABLE_NEW_USERS",
      "service": "auth",
      "description": "Set true to require manual activation",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AUTH_RATE_LIMIT_ENABLE",
      "service": "auth",
      "description": "Turn on all rate limiters",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AUTH_USER_DEFAULT_ROLE",
      "service": "auth",
      "description": "Role new accounts receive",
      "secret": false,
      "strategy": "default",
      "default": "user"
    },
    {
      "key": "AUTH_PASSWORD_MIN_LENGTH",
      "service": "auth",
      "description": "Minimum accepted password length",
      "secret": true,
      "strategy": "default",
      "default": "9"
    },
    {
      "key": "HASURA_GRAPHQL_JWT_SECRET",
      "service": "auth",
      "description": "Same signing key as the engine",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTH_PASSWORD_HIBP_ENABLED",
      "service": "auth",
      "description": "Check passwords against HaveIBeenPwned",
      "secret": true,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "HASURA_GRAPHQL_GRAPHQL_URL",
      "service": "auth",
      "description": "Private GraphQL endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AUTH_LOCALE_ALLOWED_LOCALES",
      "service": "auth",
      "description": "Locales users may choose",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "AUTH_RATE_LIMIT_EMAIL_BURST",
      "service": "auth",
      "description": "Emails allowed per interval",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "HASURA_GRAPHQL_ADMIN_SECRET",
      "service": "auth",
      "description": "Admin key for metadata calls",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HASURA_GRAPHQL_DATABASE_URL",
      "service": "auth",
      "description": "Database holding the auth schema",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTH_ACCESS_TOKEN_EXPIRES_IN",
      "service": "auth",
      "description": "Access token lifetime in seconds",
      "secret": true,
      "strategy": "default",
      "default": "900"
    },
    {
      "key": "AUTH_ANONYMOUS_USERS_ENABLED",
      "service": "auth",
      "description": "Allow anonymous sessions",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AUTH_RATE_LIMIT_GLOBAL_BURST",
      "service": "auth",
      "description": "Requests allowed per interval",
      "secret": false,
      "strategy": "default",
      "default": "100"
    },
    {
      "key": "AUTH_RATE_LIMIT_SIGNUPS_BURST",
      "service": "auth",
      "description": "Signups allowed per interval",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "AUTH_REFRESH_TOKEN_EXPIRES_IN",
      "service": "auth",
      "description": "Refresh token lifetime in seconds",
      "secret": true,
      "strategy": "default",
      "default": "2592000"
    },
    {
      "key": "AUTH_RATE_LIMIT_EMAIL_INTERVAL",
      "service": "auth",
      "description": "Window for the email limiter",
      "secret": false,
      "strategy": "default",
      "default": "1h"
    },
    {
      "key": "POSTGRES_MIGRATIONS_CONNECTION",
      "service": "auth",
      "description": "Connection used for auth migrations",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTH_RATE_LIMIT_EMAIL_IS_GLOBAL",
      "service": "auth",
      "description": "Apply the email limit instance-wide",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AUTH_RATE_LIMIT_GLOBAL_INTERVAL",
      "service": "auth",
      "description": "Window for the global limiter",
      "secret": false,
      "strategy": "default",
      "default": "1m"
    },
    {
      "key": "AUTH_USER_DEFAULT_ALLOWED_ROLES",
      "service": "auth",
      "description": "Roles a new account may request",
      "secret": false,
      "strategy": "default",
      "default": "user,me"
    },
    {
      "key": "AUTH_RATE_LIMIT_SIGNUPS_INTERVAL",
      "service": "auth",
      "description": "Window for the signup limiter",
      "secret": false,
      "strategy": "default",
      "default": "5m"
    },
    {
      "key": "AUTH_RATE_LIMIT_BRUTE_FORCE_BURST",
      "service": "auth",
      "description": "Failed logins allowed per interval",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "auth",
      "description": "Shutdown window before SIGKILL",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "AUTH_RATE_LIMIT_BRUTE_FORCE_INTERVAL",
      "service": "auth",
      "description": "Window for the login limiter",
      "secret": false,
      "strategy": "default",
      "default": "5m"
    },
    {
      "key": "AUTH_ACCESS_CONTROL_ALLOWED_REDIRECT_URLS",
      "service": "auth",
      "description": "Extra allowed redirect targets",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AUTH_EMAIL_SIGNIN_EMAIL_VERIFIED_REQUIRED",
      "service": "auth",
      "description": "Allow sign-in before verification",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PORT",
      "service": "dashboard",
      "description": "Port Railway probes and routes to",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "DASHBOARD_USER",
      "service": "dashboard",
      "description": "Username the dashboard asks for",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "NEXT_PUBLIC_ENV",
      "service": "dashboard",
      "description": "Dashboard build environment label",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "DASHBOARD_PASSWORD",
      "service": "dashboard",
      "description": "Password the dashboard asks for",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "dashboard",
      "description": "Build file for this service",
      "secret": false,
      "strategy": "default",
      "default": "dashboard/Dockerfile"
    },
    {
      "key": "NEXT_PUBLIC_NHOST_AUTH_URL",
      "service": "dashboard",
      "description": "Auth service URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_NHOST_PLATFORM",
      "service": "dashboard",
      "description": "Run in self-hosted mode",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NEXT_PUBLIC_NHOST_GRAPHQL_URL",
      "service": "dashboard",
      "description": "GraphQL endpoint URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_NHOST_STORAGE_URL",
      "service": "dashboard",
      "description": "Storage service URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_NHOST_ADMIN_SECRET",
      "service": "dashboard",
      "description": "Admin key the dashboard uses",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PUBLIC_NHOST_FUNCTIONS_URL",
      "service": "dashboard",
      "description": "Functions service URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_NHOST_HASURA_API_URL",
      "service": "dashboard",
      "description": "Hasura metadata API URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "dashboard",
      "description": "Shutdown window before SIGKILL",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "NEXT_PUBLIC_NHOST_HASURA_CONSOLE_URL",
      "service": "dashboard",
      "description": "Hasura console link",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_NHOST_HASURA_MIGRATIONS_API_URL",
      "service": "dashboard",
      "description": "Hasura CLI migrations API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "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",
      "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": "functions",
      "description": "Port Railway probes and routes to",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "functions",
      "description": "Heap ceiling for the bundler",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=3072"
    },
    {
      "key": "NHOST_AUTH_URL",
      "service": "functions",
      "description": "Auth base URL for function code",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NHOST_GRAPHQL_URL",
      "service": "functions",
      "description": "GraphQL URL for function code",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NHOST_STORAGE_URL",
      "service": "functions",
      "description": "Storage URL for function code",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "functions",
      "description": "Build file for this service",
      "secret": false,
      "strategy": "default",
      "default": "functions/Dockerfile"
    },
    {
      "key": "HASURA_GRAPHQL_JWT_SECRET",
      "service": "functions",
      "description": "Signing key available to functions",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HASURA_GRAPHQL_GRAPHQL_URL",
      "service": "functions",
      "description": "Private GraphQL endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "HASURA_GRAPHQL_ADMIN_SECRET",
      "service": "functions",
      "description": "Admin key available to functions",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HASURA_GRAPHQL_DATABASE_URL",
      "service": "functions",
      "description": "Database connection for functions",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "functions",
      "description": "Shutdown window before SIGKILL",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "PORT",
      "service": "graphql",
      "description": "Port Railway probes and routes to",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "HASURA_GRAPHQL_DEV_MODE",
      "service": "graphql",
      "description": "Hide internal errors from clients",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "graphql",
      "description": "Build file for this service",
      "secret": false,
      "strategy": "default",
      "default": "graphql/Dockerfile"
    },
    {
      "key": "HASURA_GRAPHQL_LOG_LEVEL",
      "service": "graphql",
      "description": "Engine log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "HASURA_GRAPHQL_JWT_SECRET",
      "service": "graphql",
      "description": "Key auth signs and Hasura verifies",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HASURA_GRAPHQL_CORS_DOMAIN",
      "service": "graphql",
      "description": "Browser clients live on other origins",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "HASURA_GRAPHQL_SERVER_PORT",
      "service": "graphql",
      "description": "Port the engine listens on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "HASURA_GRAPHQL_ADMIN_SECRET",
      "service": "graphql",
      "description": "Master key for GraphQL and metadata APIs",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HASURA_GRAPHQL_DATABASE_URL",
      "service": "graphql",
      "description": "Application and catalogue database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HASURA_GRAPHQL_ENABLED_APIS",
      "service": "graphql",
      "description": "APIs the engine exposes",
      "secret": false,
      "strategy": "default",
      "default": "metadata,graphql,pgdump,config"
    },
    {
      "key": "HASURA_GRAPHQL_ENABLE_CONSOLE",
      "service": "graphql",
      "description": "Serve the Hasura console at /console",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "HASURA_GRAPHQL_PG_CONNECTIONS",
      "service": "graphql",
      "description": "Initial pool size for the source",
      "secret": false,
      "strategy": "default",
      "default": "25"
    },
    {
      "key": "HASURA_GRAPHQL_ENABLE_TELEMETRY",
      "service": "graphql",
      "description": "No usage reporting to Hasura",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "HASURA_GRAPHQL_ENABLED_LOG_TYPES",
      "service": "graphql",
      "description": "Log categories emitted",
      "secret": false,
      "strategy": "default",
      "default": "startup,http-log,webhook-log,websocket-log"
    },
    {
      "key": "HASURA_GRAPHQL_UNAUTHORIZED_ROLE",
      "service": "graphql",
      "description": "Role applied to anonymous requests",
      "secret": false,
      "strategy": "default",
      "default": "public"
    },
    {
      "key": "HASURA_GRAPHQL_CONSOLE_ASSETS_DIR",
      "service": "graphql",
      "description": "Serve console assets from the image",
      "secret": false,
      "strategy": "default",
      "default": "/srv/console-assets"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "graphql",
      "description": "Shutdown window before SIGKILL",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES",
      "service": "graphql",
      "description": "Return numerics as JSON numbers",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "HASURA_GRAPHQL_GRACEFUL_SHUTDOWN_TIMEOUT",
      "service": "graphql",
      "description": "Seconds to finish in-flight events",
      "secret": false,
      "strategy": "default",
      "default": "25"
    },
    {
      "key": "TZ",
      "service": "mailhog",
      "description": "Timezone for displayed timestamps",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "mailhog",
      "description": "Port Railway probes and routes to",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailhog",
      "description": "Credentials for the web inbox",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_DATABASE",
      "service": "mailhog",
      "description": "Message store on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/mailpit.db"
    },
    {
      "key": "MP_SMTP_AUTH",
      "service": "mailhog",
      "description": "SMTP credentials the server accepts",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "mailhog",
      "description": "Messages kept before rotation",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MP_UI_BIND_ADDR",
      "service": "mailhog",
      "description": "Web inbox listen address",
      "secret": false,
      "strategy": "default",
      "default": "[::]:8025"
    },
    {
      "key": "MP_SMTP_PASSWORD",
      "service": "mailhog",
      "description": "Shared SMTP password, referenced by auth",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "mailhog",
      "description": "SMTP listen address",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1025"
    },
    {
      "key": "MP_SMTP_AUTH_ALLOW_INSECURE",
      "service": "mailhog",
      "description": "Accept auth on the plain listener",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nhost"
      }
    },
    "cli": "railway deploy --template nhost",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "10c73fdf-d68e-484c-a5a6-70180423073a",
            "serializedConfig": {
              "buckets": {
                "d1af640e-08a6-4c0a-b99e-8910123859ed": {
                  "name": "nhost-storage"
                }
              },
              "services": {
                "324ecafb-e8a5-48e3-8301-65883fca8401": {
                  "icon": "https://cdn.simpleicons.org/nhost/white.svg",
                  "name": "storage",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/nhost-railway",
                    "rootDirectory": "storage"
                  },
                  "variables": {
                    "BIND": {
                      "isOptional": false,
                      "description": "Listen address inside the container",
                      "defaultValue": ":5000"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway probes and routes to",
                      "defaultValue": "5000"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket uploaded files go to",
                      "defaultValue": "${{nhost-storage.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{nhost-storage.REGION}}"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Base URL used in presigned links",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{nhost-storage.ENDPOINT}}"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{nhost-storage.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{nhost-storage.SECRET_ACCESS_KEY}}"
                    },
                    "S3_ROOT_FOLDER": {
                      "isOptional": true,
                      "description": "Optional key prefix inside the bucket",
                      "defaultValue": ""
                    },
                    "API_ROOT_PREFIX": {
                      "isOptional": false,
                      "description": "Path prefix for every storage route",
                      "defaultValue": "/v1"
                    },
                    "HASURA_ENDPOINT": {
                      "isOptional": false,
                      "description": "Private Hasura endpoint",
                      "defaultValue": "http://${{graphql.RAILWAY_PRIVATE_DOMAIN}}:8080/v1"
                    },
                    "HASURA_METADATA": {
                      "isOptional": false,
                      "description": "Register storage tables in Hasura",
                      "defaultValue": "1"
                    },
                    "LOG_FORMAT_TEXT": {
                      "isOptional": false,
                      "description": "Human-readable log lines",
                      "defaultValue": "true"
                    },
                    "CORS_ALLOW_ORIGINS": {
                      "isOptional": false,
                      "description": "Browser origins allowed to upload",
                      "defaultValue": "*"
                    },
                    "POSTGRES_MIGRATIONS": {
                      "isOptional": false,
                      "description": "Run storage schema migrations",
                      "defaultValue": "1"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "description": "Build file for this service",
                      "defaultValue": "storage/Dockerfile"
                    },
                    "POSTGRES_MIGRATIONS_SOURCE": {
                      "isOptional": false,
                      "description": "Connection used for migrations",
                      "defaultValue": "${{Postgres.DATABASE_URL}}?sslmode=disable"
                    },
                    "HASURA_GRAPHQL_ADMIN_SECRET": {
                      "isOptional": false,
                      "description": "Admin key for metadata calls",
                      "defaultValue": "${{graphql.HASURA_GRAPHQL_ADMIN_SECRET}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Shutdown window before SIGKILL",
                      "defaultValue": "20"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5000": {
                        "port": 5000
                      }
                    }
                  }
                },
                "42a62c47-a305-41d9-bd33-3dd5d38e8877": {
                  "icon": "https://cdn.simpleicons.org/nhost/white.svg",
                  "name": "auth",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "nhost/auth:0.40.2"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway probes and routes to",
                      "defaultValue": "4000"
                    },
                    "AUTH_HOST": {
                      "isOptional": false,
                      "description": "Listen address inside the container",
                      "defaultValue": "0.0.0.0"
                    },
                    "AUTH_PORT": {
                      "isOptional": false,
                      "description": "Port the auth service listens on",
                      "defaultValue": "4000"
                    },
                    "AUTH_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Auth service log verbosity",
                      "defaultValue": "info"
                    },
                    "AUTH_SMTP_HOST": {
                      "isOptional": false,
                      "description": "SMTP host; must stay this literal name",
                      "defaultValue": "mailhog"
                    },
                    "AUTH_SMTP_PASS": {
                      "isOptional": false,
                      "description": "SMTP password, shared with mailhog",
                      "defaultValue": "${{mailhog.MP_SMTP_PASSWORD}}"
                    },
                    "AUTH_SMTP_PORT": {
                      "isOptional": false,
                      "description": "SMTP port on the mail service",
                      "defaultValue": "1025"
                    },
                    "AUTH_SMTP_USER": {
                      "isOptional": false,
                      "description": "SMTP username",
                      "defaultValue": "nhost"
                    },
                    "AUTH_API_PREFIX": {
                      "isOptional": false,
                      "description": "Path prefix for every auth route",
                      "defaultValue": "/v1"
                    },
                    "AUTH_CLIENT_URL": {
                      "isOptional": false,
                      "description": "Where email links send the user",
                      "defaultValue": "https://${{dashboard.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AUTH_SERVER_URL": {
                      "isOptional": false,
                      "description": "Public base URL used in email links",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/v1"
                    },
                    "AUTH_MFA_ENABLED": {
                      "isOptional": false,
                      "description": "Enable TOTP multi-factor auth",
                      "defaultValue": "false"
                    },
                    "AUTH_SMTP_SECURE": {
                      "isOptional": false,
                      "description": "Plain connection on the private network",
                      "defaultValue": "false"
                    },
                    "AUTH_SMTP_SENDER": {
                      "isOptional": false,
                      "description": "From address on outgoing mail",
                      "defaultValue": "auth@nhost.local"
                    },
                    "AUTH_CONCEAL_ERRORS": {
                      "isOptional": false,
                      "description": "Return detailed API errors",
                      "defaultValue": "false"
                    },
                    "AUTH_DISABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Set true to close public registration",
                      "defaultValue": "false"
                    },
                    "AUTH_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored OAuth and TOTP secrets",
                      "defaultValue": "{{AUTH_ENCRYPTION_KEY}}"
                    },
                    "AUTH_LOCALE_DEFAULT": {
                      "isOptional": false,
                      "description": "Default locale for emails",
                      "defaultValue": "en"
                    },
                    "AUTH_GRAVATAR_RATING": {
                      "isOptional": false,
                      "description": "Maximum Gravatar content rating",
                      "defaultValue": "g"
                    },
                    "AUTH_GRAVATAR_DEFAULT": {
                      "isOptional": false,
                      "description": "Fallback avatar style",
                      "defaultValue": "blank"
                    },
                    "AUTH_GRAVATAR_ENABLED": {
                      "isOptional": false,
                      "description": "Generate Gravatar avatar URLs",
                      "defaultValue": "true"
                    },
                    "AUTH_SMTP_AUTH_METHOD": {
                      "isOptional": false,
                      "description": "SMTP authentication mechanism",
                      "defaultValue": "LOGIN"
                    },
                    "AUTH_DISABLE_NEW_USERS": {
                      "isOptional": false,
                      "description": "Set true to require manual activation",
                      "defaultValue": "false"
                    },
                    "AUTH_RATE_LIMIT_ENABLE": {
                      "isOptional": false,
                      "description": "Turn on all rate limiters",
                      "defaultValue": "true"
                    },
                    "AUTH_USER_DEFAULT_ROLE": {
                      "isOptional": false,
                      "description": "Role new accounts receive",
                      "defaultValue": "user"
                    },
                    "AUTH_PASSWORD_MIN_LENGTH": {
                      "isOptional": false,
                      "description": "Minimum accepted password length",
                      "defaultValue": "9"
                    },
                    "HASURA_GRAPHQL_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Same signing key as the engine",
                      "defaultValue": "${{graphql.HASURA_GRAPHQL_JWT_SECRET}}"
                    },
                    "AUTH_PASSWORD_HIBP_ENABLED": {
                      "isOptional": false,
                      "description": "Check passwords against HaveIBeenPwned",
                      "defaultValue": "false"
                    },
                    "HASURA_GRAPHQL_GRAPHQL_URL": {
                      "isOptional": false,
                      "description": "Private GraphQL endpoint",
                      "defaultValue": "http://${{graphql.RAILWAY_PRIVATE_DOMAIN}}:8080/v1/graphql"
                    },
                    "AUTH_LOCALE_ALLOWED_LOCALES": {
                      "isOptional": false,
                      "description": "Locales users may choose",
                      "defaultValue": "en"
                    },
                    "AUTH_RATE_LIMIT_EMAIL_BURST": {
                      "isOptional": false,
                      "description": "Emails allowed per interval",
                      "defaultValue": "10"
                    },
                    "HASURA_GRAPHQL_ADMIN_SECRET": {
                      "isOptional": false,
                      "description": "Admin key for metadata calls",
                      "defaultValue": "${{graphql.HASURA_GRAPHQL_ADMIN_SECRET}}"
                    },
                    "HASURA_GRAPHQL_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Database holding the auth schema",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "AUTH_ACCESS_TOKEN_EXPIRES_IN": {
                      "isOptional": false,
                      "description": "Access token lifetime in seconds",
                      "defaultValue": "900"
                    },
                    "AUTH_ANONYMOUS_USERS_ENABLED": {
                      "isOptional": false,
                      "description": "Allow anonymous sessions",
                      "defaultValue": "false"
                    },
                    "AUTH_RATE_LIMIT_GLOBAL_BURST": {
                      "isOptional": false,
                      "description": "Requests allowed per interval",
                      "defaultValue": "100"
                    },
                    "AUTH_RATE_LIMIT_SIGNUPS_BURST": {
                      "isOptional": false,
                      "description": "Signups allowed per interval",
                      "defaultValue": "10"
                    },
                    "AUTH_REFRESH_TOKEN_EXPIRES_IN": {
                      "isOptional": false,
                      "description": "Refresh token lifetime in seconds",
                      "defaultValue": "2592000"
                    },
                    "AUTH_RATE_LIMIT_EMAIL_INTERVAL": {
                      "isOptional": false,
                      "description": "Window for the email limiter",
                      "defaultValue": "1h"
                    },
                    "POSTGRES_MIGRATIONS_CONNECTION": {
                      "isOptional": false,
                      "description": "Connection used for auth migrations",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "AUTH_RATE_LIMIT_EMAIL_IS_GLOBAL": {
                      "isOptional": false,
                      "description": "Apply the email limit instance-wide",
                      "defaultValue": "true"
                    },
                    "AUTH_RATE_LIMIT_GLOBAL_INTERVAL": {
                      "isOptional": false,
                      "description": "Window for the global limiter",
                      "defaultValue": "1m"
                    },
                    "AUTH_USER_DEFAULT_ALLOWED_ROLES": {
                      "isOptional": false,
                      "description": "Roles a new account may request",
                      "defaultValue": "user,me"
                    },
                    "AUTH_RATE_LIMIT_SIGNUPS_INTERVAL": {
                      "isOptional": false,
                      "description": "Window for the signup limiter",
                      "defaultValue": "5m"
                    },
                    "AUTH_RATE_LIMIT_BRUTE_FORCE_BURST": {
                      "isOptional": false,
                      "description": "Failed logins allowed per interval",
                      "defaultValue": "10"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Shutdown window before SIGKILL",
                      "defaultValue": "20"
                    },
                    "AUTH_RATE_LIMIT_BRUTE_FORCE_INTERVAL": {
                      "isOptional": false,
                      "description": "Window for the login limiter",
                      "defaultValue": "5m"
                    },
                    "AUTH_ACCESS_CONTROL_ALLOWED_REDIRECT_URLS": {
                      "isOptional": false,
                      "description": "Extra allowed redirect targets",
                      "defaultValue": "https://${{dashboard.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AUTH_EMAIL_SIGNIN_EMAIL_VERIFIED_REQUIRED": {
                      "isOptional": false,
                      "description": "Allow sign-in before verification",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4000": {
                        "port": 4000
                      }
                    }
                  }
                },
                "65f9775f-83cd-48a8-ac11-b77b8771f4e7": {
                  "icon": "https://cdn.simpleicons.org/nhost/white.svg",
                  "name": "dashboard",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/nhost-railway",
                    "rootDirectory": "dashboard"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway probes and routes to",
                      "defaultValue": "8080"
                    },
                    "DASHBOARD_USER": {
                      "isOptional": false,
                      "description": "Username the dashboard asks for",
                      "defaultValue": "admin"
                    },
                    "NEXT_PUBLIC_ENV": {
                      "isOptional": false,
                      "description": "Dashboard build environment label",
                      "defaultValue": "production"
                    },
                    "DASHBOARD_PASSWORD": {
                      "isOptional": false,
                      "description": "Password the dashboard asks for",
                      "defaultValue": "{{DASHBOARD_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "description": "Build file for this service",
                      "defaultValue": "dashboard/Dockerfile"
                    },
                    "NEXT_PUBLIC_NHOST_AUTH_URL": {
                      "isOptional": false,
                      "description": "Auth service URL",
                      "defaultValue": "https://${{auth.RAILWAY_PUBLIC_DOMAIN}}/v1"
                    },
                    "NEXT_PUBLIC_NHOST_PLATFORM": {
                      "isOptional": false,
                      "description": "Run in self-hosted mode",
                      "defaultValue": "false"
                    },
                    "NEXT_PUBLIC_NHOST_GRAPHQL_URL": {
                      "isOptional": false,
                      "description": "GraphQL endpoint URL",
                      "defaultValue": "https://${{graphql.RAILWAY_PUBLIC_DOMAIN}}/v1/graphql"
                    },
                    "NEXT_PUBLIC_NHOST_STORAGE_URL": {
                      "isOptional": false,
                      "description": "Storage service URL",
                      "defaultValue": "https://${{storage.RAILWAY_PUBLIC_DOMAIN}}/v1"
                    },
                    "NEXT_PUBLIC_NHOST_ADMIN_SECRET": {
                      "isOptional": false,
                      "description": "Admin key the dashboard uses",
                      "defaultValue": "${{graphql.HASURA_GRAPHQL_ADMIN_SECRET}}"
                    },
                    "NEXT_PUBLIC_NHOST_FUNCTIONS_URL": {
                      "isOptional": false,
                      "description": "Functions service URL",
                      "defaultValue": "https://${{functions.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_NHOST_HASURA_API_URL": {
                      "isOptional": false,
                      "description": "Hasura metadata API URL",
                      "defaultValue": "https://${{graphql.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Shutdown window before SIGKILL",
                      "defaultValue": "20"
                    },
                    "NEXT_PUBLIC_NHOST_HASURA_CONSOLE_URL": {
                      "isOptional": false,
                      "description": "Hasura console link",
                      "defaultValue": "https://${{graphql.RAILWAY_PUBLIC_DOMAIN}}/console"
                    },
                    "NEXT_PUBLIC_NHOST_HASURA_MIGRATIONS_API_URL": {
                      "isOptional": false,
                      "description": "Hasura CLI migrations API",
                      "defaultValue": "https://${{graphql.RAILWAY_PUBLIC_DOMAIN}}/apis/migrate"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "6c765768-a729-4992-8581-a718ced4df24": {
                  "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",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "6c765768-a729-4992-8581-a718ced4df24": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "7bcbcfa5-2a65-44e2-af27-0d011c94a58d": {
                  "icon": "https://cdn.simpleicons.org/nhost/white.svg",
                  "name": "functions",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/nhost-railway",
                    "rootDirectory": "functions"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway probes and routes to",
                      "defaultValue": "3000"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Heap ceiling for the bundler",
                      "defaultValue": "--max-old-space-size=3072"
                    },
                    "NHOST_AUTH_URL": {
                      "isOptional": false,
                      "description": "Auth base URL for function code",
                      "defaultValue": "https://${{auth.RAILWAY_PUBLIC_DOMAIN}}/v1"
                    },
                    "NHOST_GRAPHQL_URL": {
                      "isOptional": false,
                      "description": "GraphQL URL for function code",
                      "defaultValue": "https://${{graphql.RAILWAY_PUBLIC_DOMAIN}}/v1/graphql"
                    },
                    "NHOST_STORAGE_URL": {
                      "isOptional": false,
                      "description": "Storage URL for function code",
                      "defaultValue": "https://${{storage.RAILWAY_PUBLIC_DOMAIN}}/v1"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "description": "Build file for this service",
                      "defaultValue": "functions/Dockerfile"
                    },
                    "HASURA_GRAPHQL_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signing key available to functions",
                      "defaultValue": "${{graphql.HASURA_GRAPHQL_JWT_SECRET}}"
                    },
                    "HASURA_GRAPHQL_GRAPHQL_URL": {
                      "isOptional": false,
                      "description": "Private GraphQL endpoint",
                      "defaultValue": "http://${{graphql.RAILWAY_PRIVATE_DOMAIN}}:8080/v1/graphql"
                    },
                    "HASURA_GRAPHQL_ADMIN_SECRET": {
                      "isOptional": false,
                      "description": "Admin key available to functions",
                      "defaultValue": "${{graphql.HASURA_GRAPHQL_ADMIN_SECRET}}"
                    },
                    "HASURA_GRAPHQL_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Database connection for functions",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Shutdown window before SIGKILL",
                      "defaultValue": "20"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "ae148b17-dc0a-4858-8a2c-bdc8e5370baa": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/hasura.svg",
                  "name": "graphql",
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/nhost-railway",
                    "rootDirectory": "graphql"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway probes and routes to",
                      "defaultValue": "8080"
                    },
                    "HASURA_GRAPHQL_DEV_MODE": {
                      "isOptional": false,
                      "description": "Hide internal errors from clients",
                      "defaultValue": "false"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "description": "Build file for this service",
                      "defaultValue": "graphql/Dockerfile"
                    },
                    "HASURA_GRAPHQL_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Engine log verbosity",
                      "defaultValue": "info"
                    },
                    "HASURA_GRAPHQL_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Key auth signs and Hasura verifies",
                      "defaultValue": "{{HASURA_GRAPHQL_JWT_SECRET}}"
                    },
                    "HASURA_GRAPHQL_CORS_DOMAIN": {
                      "isOptional": false,
                      "description": "Browser clients live on other origins",
                      "defaultValue": "*"
                    },
                    "HASURA_GRAPHQL_SERVER_PORT": {
                      "isOptional": false,
                      "description": "Port the engine listens on",
                      "defaultValue": "8080"
                    },
                    "HASURA_GRAPHQL_ADMIN_SECRET": {
                      "isOptional": false,
                      "description": "Master key for GraphQL and metadata APIs",
                      "defaultValue": "{{HASURA_GRAPHQL_ADMIN_SECRET}}"
                    },
                    "HASURA_GRAPHQL_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Application and catalogue database",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "HASURA_GRAPHQL_ENABLED_APIS": {
                      "isOptional": false,
                      "description": "APIs the engine exposes",
                      "defaultValue": "metadata,graphql,pgdump,config"
                    },
                    "HASURA_GRAPHQL_ENABLE_CONSOLE": {
                      "isOptional": false,
                      "description": "Serve the Hasura console at /console",
                      "defaultValue": "true"
                    },
                    "HASURA_GRAPHQL_PG_CONNECTIONS": {
                      "isOptional": false,
                      "description": "Initial pool size for the source",
                      "defaultValue": "25"
                    },
                    "HASURA_GRAPHQL_ENABLE_TELEMETRY": {
                      "isOptional": false,
                      "description": "No usage reporting to Hasura",
                      "defaultValue": "false"
                    },
                    "HASURA_GRAPHQL_ENABLED_LOG_TYPES": {
                      "isOptional": false,
                      "description": "Log categories emitted",
                      "defaultValue": "startup,http-log,webhook-log,websocket-log"
                    },
                    "HASURA_GRAPHQL_UNAUTHORIZED_ROLE": {
                      "isOptional": false,
                      "description": "Role applied to anonymous requests",
                      "defaultValue": "public"
                    },
                    "HASURA_GRAPHQL_CONSOLE_ASSETS_DIR": {
                      "isOptional": false,
                      "description": "Serve console assets from the image",
                      "defaultValue": "/srv/console-assets"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Shutdown window before SIGKILL",
                      "defaultValue": "30"
                    },
                    "HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES": {
                      "isOptional": false,
                      "description": "Return numerics as JSON numbers",
                      "defaultValue": "false"
                    },
                    "HASURA_GRAPHQL_GRACEFUL_SHUTDOWN_TIMEOUT": {
                      "isOptional": false,
                      "description": "Seconds to finish in-flight events",
                      "defaultValue": "25"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "f030652b-a627-4eb2-afd5-46f31688713e": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailhog",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone for displayed timestamps",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway probes and routes to",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Credentials for the web inbox",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_SMTP_AUTH": {
                      "isOptional": false,
                      "description": "SMTP credentials the server accepts",
                      "defaultValue": "nhost:${{MP_SMTP_PASSWORD}}"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": false,
                      "description": "Messages kept before rotation",
                      "defaultValue": "5000"
                    },
                    "MP_UI_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Web inbox listen address",
                      "defaultValue": "[::]:8025"
                    },
                    "MP_SMTP_PASSWORD": {
                      "description": "Shared SMTP password, referenced by auth",
                      "defaultValue": "{{MP_SMTP_PASSWORD}}"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "SMTP listen address",
                      "defaultValue": "[::]:1025"
                    },
                    "MP_SMTP_AUTH_ALLOW_INSECURE": {
                      "isOptional": false,
                      "description": "Accept auth on the plain listener",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "f030652b-a627-4eb2-afd5-46f31688713e": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "storage",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 7,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T13:20:00.781Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_4c356b14428f489883ef",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
