{
  "manifest_version": "1.0.0",
  "template": {
    "id": "31228d9e-d409-4304-99d7-1acc1abc0d92",
    "slug": "marlo",
    "name": "Marlo",
    "description": "marlo — intelligent email for busy people.",
    "url": "https://railway.com/deploy/marlo",
    "upstream": {
      "repo_url": "https://github.com/marlohq/marlo"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Web",
      "source": {
        "repo": "https://github.com/marlohq/marlo"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "Mail Ingestion",
      "source": {
        "repo": "https://github.com/marlohq/marlo"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "Sync",
      "source": {
        "repo": "https://github.com/astrotechco/marlo"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "PGBouncer",
      "source": {
        "image": "railwayapp/pgbouncer"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDIS_URL",
      "service": "Web",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ROARR_LOG",
      "service": "Web",
      "description": "Provide a value for ROARR_LOG.",
      "secret": false,
      "strategy": "default",
      "default": "TRUE"
    },
    {
      "key": "REDIS_HOST",
      "service": "Web",
      "description": "Provide a value for REDIS_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "localhost"
    },
    {
      "key": "SENTRY_DSN",
      "service": "Web",
      "description": "Sentry DSN (Data Source Name) to use. If omitted, Sentry will be disabled.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "AUTH_SECRET",
      "service": "Web",
      "description": "Secret for authentication sessions",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BUCKET_NAME",
      "service": "Web",
      "description": "Name of the S3 bucket",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "Web",
      "description": "Internal database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GOOGLE_CLIENT_ID",
      "service": "Web",
      "description": "Google OAuth client ID",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SYNC_AUTH_SECRET",
      "service": "Web",
      "description": "Shared secret with sync server",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "Web",
      "description": "AWS access key for S3 bucket access",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SENTRY_CLIENT_DSN",
      "service": "Web",
      "description": "Sentry DSN (Data Source Name) to use on the client. If omitted, Sentry will be disabled.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "GOOGLE_GMAIL_TOPIC",
      "service": "Web",
      "description": "Google Pub/Sub topic for Gmail notifications",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PUBLIC_BACKEND_URL",
      "service": "Web",
      "description": "Backend URL, for ex: https://marlo.example.com",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "GOOGLE_CLIENT_SECRET",
      "service": "Web",
      "description": "Google OAuth client secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OAUTH_ENCRYPTION_KEY",
      "service": "Web",
      "description": "Encryption key for OAuth tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "Web",
      "description": "AWS secret key for S3 bucket access",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PUBLIC_LOGIN_BASE_URL",
      "service": "Web",
      "description": "Base login URL, for ex: https://marlo.example.com",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PUBLIC_SYNC_ENGINE_URL",
      "service": "Web",
      "description": "Sync engine web socket address, for ex: wss://marlo-sync.example.com",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "Web",
      "description": "Provide a value for RAILWAY_DOCKERFILE_PATH.",
      "secret": false,
      "strategy": "default",
      "default": "apps/web/Dockerfile"
    },
    {
      "key": "GOOGLE_GENERATIVE_AI_API_KEY",
      "service": "Web",
      "description": "Google Generative AI API key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Provide a value for REDISHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Provide a value for REDISPORT.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Provide a value for REDISUSER.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDISPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Connection string for connecting to redis externally",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_URL",
      "service": "Mail Ingestion",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ROARR_LOG",
      "service": "Mail Ingestion",
      "description": "Provide a value for ROARR_LOG.",
      "secret": false,
      "strategy": "default",
      "default": "TRUE"
    },
    {
      "key": "REDIS_HOST",
      "service": "Mail Ingestion",
      "description": "Provide a value for REDIS_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "localhost"
    },
    {
      "key": "BUCKET_NAME",
      "service": "Mail Ingestion",
      "description": "Provide a value for BUCKET_NAME.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "Mail Ingestion",
      "description": "Internal database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "Mail Ingestion",
      "description": "Provide a value for NODE_OPTIONS.",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=8192"
    },
    {
      "key": "GOOGLE_CLIENT_ID",
      "service": "Mail Ingestion",
      "description": "Provide a value for GOOGLE_CLIENT_ID.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "Mail Ingestion",
      "description": "Provide a value for AWS_ACCESS_KEY_ID.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GOOGLE_CLIENT_SECRET",
      "service": "Mail Ingestion",
      "description": "Provide a value for GOOGLE_CLIENT_SECRET.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OAUTH_ENCRYPTION_KEY",
      "service": "Mail Ingestion",
      "description": "Provide a value for OAUTH_ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "Mail Ingestion",
      "description": "Provide a value for AWS_SECRET_ACCESS_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GOOGLE_SERVICE_ACCOUNT",
      "service": "Mail Ingestion",
      "description": "Google service account",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "Mail Ingestion",
      "description": "Provide a value for RAILWAY_DOCKERFILE_PATH.",
      "secret": false,
      "strategy": "default",
      "default": "apps/mail-ingester/Dockerfile"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "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": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public URL to connect to Postgres database, used by the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "ROARR_LOG",
      "service": "Sync",
      "description": "Provide a value for ROARR_LOG.",
      "secret": false,
      "strategy": "default",
      "default": "TRUE"
    },
    {
      "key": "SENTRY_DSN",
      "service": "Sync",
      "description": "Sentry DSN (Data Source Name) to use. If omitted, Sentry will be disabled.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "Sync",
      "description": "Internal database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SYNC_AUTH_SECRET",
      "service": "Sync",
      "description": "Random string that serves as a secret in auth key signing.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DIRECT_DATABASE_URL",
      "service": "Sync",
      "description": "Direct database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "Sync",
      "description": "Provide a value for RAILWAY_DOCKERFILE_PATH.",
      "secret": false,
      "strategy": "default",
      "default": "apps/sync/Dockerfile"
    },
    {
      "key": "DATABASE_URL",
      "service": "PGBouncer",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_HOST",
      "service": "PGBouncer",
      "description": "Provide a value for POSTGRESQL_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_PORT",
      "service": "PGBouncer",
      "description": "Provide a value for POSTGRESQL_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGBOUNCER_DATABASE",
      "service": "PGBouncer",
      "description": "Provide a value for PGBOUNCER_DATABASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "PGBouncer",
      "description": "Provide a value for DATABASE_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGBOUNCER_POOL_MODE",
      "service": "PGBouncer",
      "description": "Provide a value for PGBOUNCER_POOL_MODE.",
      "secret": false,
      "strategy": "default",
      "default": "transaction"
    },
    {
      "key": "POSTGRESQL_DATABASE",
      "service": "PGBouncer",
      "description": "Provide a value for POSTGRESQL_DATABASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRESQL_PASSWORD",
      "service": "PGBouncer",
      "description": "Provide a value for POSTGRESQL_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRESQL_USERNAME",
      "service": "PGBouncer",
      "description": "Provide a value for POSTGRESQL_USERNAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGBOUNCER_LISTEN_ADDRESS",
      "service": "PGBouncer",
      "description": "Provide a value for PGBOUNCER_LISTEN_ADDRESS.",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "PGBOUNCER_MAX_CLIENT_CONN",
      "service": "PGBouncer",
      "description": "Provide a value for PGBOUNCER_MAX_CLIENT_CONN.",
      "secret": false,
      "strategy": "default",
      "default": "190"
    },
    {
      "key": "PGBOUNCER_DEFAULT_POOL_SIZE",
      "service": "PGBouncer",
      "description": "Provide a value for PGBOUNCER_DEFAULT_POOL_SIZE.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PGBOUNCER_CLIENT_IDLE_TIMEOUT",
      "service": "PGBouncer",
      "description": "Provide a value for PGBOUNCER_CLIENT_IDLE_TIMEOUT.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "marlo"
      }
    },
    "cli": "railway deploy --template marlo",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "31228d9e-d409-4304-99d7-1acc1abc0d92",
            "serializedConfig": {
              "services": {
                "2a2f8f31-d6cf-41cb-a353-e2124bd1bbbf": {
                  "name": "Web",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "repo": "marlohq/marlo",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{Redis.REDIS_URL}}?family=0"
                    },
                    "ROARR_LOG": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "TRUE"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "localhost"
                    },
                    "SENTRY_DSN": {
                      "isOptional": false,
                      "description": "Sentry DSN (Data Source Name) to use. If omitted, Sentry will be disabled.",
                      "defaultValue": "{{SENTRY_DSN}}"
                    },
                    "AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Secret for authentication sessions",
                      "defaultValue": "{{AUTH_SECRET}}"
                    },
                    "BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Name of the S3 bucket",
                      "defaultValue": "{{BUCKET_NAME}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal database URL",
                      "defaultValue": "${{PGBouncer.DATABASE_URL}}"
                    },
                    "AXIOM_TOKEN_WEB": {
                      "isOptional": true,
                      "description": "Axiom token for the web app",
                      "defaultValue": ""
                    },
                    "GOOGLE_CLIENT_ID": {
                      "isOptional": false,
                      "description": "Google OAuth client ID",
                      "defaultValue": "{{GOOGLE_CLIENT_ID}}"
                    },
                    "SYNC_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Shared secret with sync server",
                      "defaultValue": "{{SYNC_AUTH_SECRET}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "AWS access key for S3 bucket access",
                      "defaultValue": "{{AWS_ACCESS_KEY_ID}}"
                    },
                    "SENTRY_CLIENT_DSN": {
                      "isOptional": false,
                      "description": "Sentry DSN (Data Source Name) to use on the client. If omitted, Sentry will be disabled.",
                      "defaultValue": "{{SENTRY_CLIENT_DSN}}"
                    },
                    "STRIPE_SECRET_KEY": {
                      "isOptional": true,
                      "description": "Stripe API secret key",
                      "defaultValue": ""
                    },
                    "GOOGLE_GMAIL_TOPIC": {
                      "isOptional": false,
                      "description": "Google Pub/Sub topic for Gmail notifications",
                      "defaultValue": "{{GOOGLE_GMAIL_TOPIC}}"
                    },
                    "PUBLIC_BACKEND_URL": {
                      "isOptional": false,
                      "description": "Backend URL, for ex: https://marlo.example.com",
                      "defaultValue": "{{PUBLIC_BACKEND_URL}}"
                    },
                    "GOOGLE_CLIENT_SECRET": {
                      "isOptional": false,
                      "description": "Google OAuth client secret",
                      "defaultValue": "{{GOOGLE_CLIENT_SECRET}}"
                    },
                    "OAUTH_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encryption key for OAuth tokens",
                      "defaultValue": "{{OAUTH_ENCRYPTION_KEY}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "AWS secret key for S3 bucket access",
                      "defaultValue": "{{AWS_SECRET_ACCESS_KEY}}"
                    },
                    "NPM_TASKFORCESH_TOKEN": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "PUBLIC_LOGIN_BASE_URL": {
                      "isOptional": false,
                      "description": "Base login URL, for ex: https://marlo.example.com",
                      "defaultValue": "{{PUBLIC_LOGIN_BASE_URL}}"
                    },
                    "STRIPE_SIGNING_SECRET": {
                      "isOptional": true,
                      "description": "Stripe webhook signing secret",
                      "defaultValue": ""
                    },
                    "FEATURE_STRIPE_ENABLED": {
                      "isOptional": true,
                      "description": "Enable/disable Stripe",
                      "defaultValue": ""
                    },
                    "GH_FETCH_RELEASE_TOKEN": {
                      "isOptional": true,
                      "description": "Release token for desktop publishing",
                      "defaultValue": ""
                    },
                    "PUBLIC_SYNC_ENGINE_URL": {
                      "isOptional": false,
                      "description": "Sync engine web socket address, for ex: wss://marlo-sync.example.com",
                      "defaultValue": "{{PUBLIC_SYNC_ENGINE_URL}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "defaultValue": "apps/web/Dockerfile"
                    },
                    "STRIPE_DEFAULT_PRICE_ID": {
                      "isOptional": true,
                      "description": "Default Stripe price ID for subscriptions",
                      "defaultValue": ""
                    },
                    "GOOGLE_GENERATIVE_AI_API_KEY": {
                      "isOptional": false,
                      "description": "Google Generative AI API key",
                      "defaultValue": "{{GOOGLE_GENERATIVE_AI_API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "39222b18-4435-437e-9adb-5474e0f1ab10": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.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\" --maxmemory-policy noeviction"
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Connection string for connecting to redis externally",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    }
                  },
                  "volumeMounts": {
                    "39222b18-4435-437e-9adb-5474e0f1ab10": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "40f65605-6ade-4d50-ad7c-d6b2abc7265c": {
                  "name": "Mail Ingestion",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "repo": "marlohq/marlo",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{Redis.REDIS_URL}}?family=0"
                    },
                    "ROARR_LOG": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "TRUE"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "localhost"
                    },
                    "SENTRY_DSN": {
                      "isOptional": true,
                      "description": "Sentry DSN (Data Source Name) to use. If omitted, Sentry will be disabled.",
                      "defaultValue": ""
                    },
                    "BUCKET_NAME": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{BUCKET_NAME}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal database URL",
                      "defaultValue": "${{PGBouncer.DATABASE_URL}}"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "--max-old-space-size=8192"
                    },
                    "GOOGLE_CLIENT_ID": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{Web.GOOGLE_CLIENT_ID}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{AWS_ACCESS_KEY_ID}}"
                    },
                    "AXIOM_TOKEN_INGEST": {
                      "isOptional": true,
                      "description": "Axiom token for ingestion",
                      "defaultValue": ""
                    },
                    "BULL_BOARD_PASSWORD": {
                      "isOptional": true,
                      "description": "If using BullMQ Pro features",
                      "defaultValue": ""
                    },
                    "BULL_BOARD_USERNAME": {
                      "isOptional": true,
                      "description": "If using BullMQ Pro features",
                      "defaultValue": ""
                    },
                    "GOOGLE_CLIENT_SECRET": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{Web.GOOGLE_CLIENT_SECRET}}"
                    },
                    "OAUTH_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{OAUTH_ENCRYPTION_KEY}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{AWS_SECRET_ACCESS_KEY}}"
                    },
                    "NPM_TASKFORCESH_TOKEN": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "GOOGLE_SERVICE_ACCOUNT": {
                      "isOptional": false,
                      "description": "Google service account",
                      "defaultValue": "{{GOOGLE_SERVICE_ACCOUNT}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "apps/mail-ingester/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "c6637400-607a-41cd-8f50-a2f2e6975a5e": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public URL to connect to Postgres database, used by the Data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "c6637400-607a-41cd-8f50-a2f2e6975a5e": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "c7d922f4-71ea-4059-972a-f917f1125980": {
                  "name": "Sync",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "repo": "astrotechco/marlo",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "ROARR_LOG": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "TRUE"
                    },
                    "SENTRY_DSN": {
                      "isOptional": false,
                      "description": "Sentry DSN (Data Source Name) to use. If omitted, Sentry will be disabled.",
                      "defaultValue": "{{SENTRY_DSN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal database URL",
                      "defaultValue": "${{PGBouncer.DATABASE_URL}}"
                    },
                    "AXIOM_TOKEN_SYNC": {
                      "isOptional": true,
                      "description": "Axiom token for sync engine",
                      "defaultValue": ""
                    },
                    "SYNC_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Random string that serves as a secret in auth key signing.",
                      "defaultValue": "{{SYNC_AUTH_SECRET}}"
                    },
                    "DIRECT_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Direct database URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NPM_TASKFORCESH_TOKEN": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "apps/sync/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "e8ace62d-6277-453d-937f-91a7a81d992a": {
                  "name": "PGBouncer",
                  "source": {
                    "image": "railwayapp/pgbouncer"
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgres://${{POSTGRESQL_USERNAME}}:${{POSTGRESQL_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6432/${{POSTGRESQL_DATABASE}}"
                    },
                    "POSTGRESQL_HOST": {
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRESQL_PORT": {
                      "defaultValue": "5432"
                    },
                    "PGBOUNCER_DATABASE": {
                      "defaultValue": "${{POSTGRESQL_DATABASE}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "postgres://${{POSTGRESQL_USERNAME}}:${{POSTGRESQL_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{POSTGRESQL_DATABASE}}"
                    },
                    "PGBOUNCER_POOL_MODE": {
                      "defaultValue": "transaction"
                    },
                    "POSTGRESQL_DATABASE": {
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "POSTGRESQL_PASSWORD": {
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "POSTGRESQL_USERNAME": {
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "PGBOUNCER_LISTEN_ADDRESS": {
                      "defaultValue": "*"
                    },
                    "PGBOUNCER_MAX_CLIENT_CONN": {
                      "defaultValue": "190"
                    },
                    "PGBOUNCER_DEFAULT_POOL_SIZE": {
                      "defaultValue": "60"
                    },
                    "PGBOUNCER_CLIENT_IDLE_TIMEOUT": {
                      "defaultValue": "300"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 6,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
