{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2c685cdc-5b6c-46bd-9398-1bfc1f464f61",
    "slug": "convoy",
    "name": "Convoy",
    "description": "Webhook gateway for managing incoming and outgoing webhooks",
    "url": "https://railway.com/deploy/convoy",
    "upstream": {
      "repo_url": "https://github.com/zawlodzki/convoy-railway-template"
    }
  },
  "services": [
    {
      "name": "Convoy Gateway",
      "source": {
        "repo": "https://github.com/zawlodzki/convoy-railway-template"
      },
      "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",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "Convoy Agent",
      "source": {
        "repo": "https://github.com/zawlodzki/convoy-railway-template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Convoy Server",
      "source": {
        "repo": "https://github.com/zawlodzki/convoy-railway-template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Convoy Gateway",
      "description": "Description: Public HTTP port for Railway to route to Caddy.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "CONVOY_AGENT_PRIVATE_DOMAIN",
      "service": "Convoy Gateway",
      "description": "Description: Private hostname for Convoy Agent.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CONVOY_SERVER_PRIVATE_DOMAIN",
      "service": "Convoy Gateway",
      "description": "Description: Private hostname for Convoy Server.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "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": "PORT",
      "service": "Convoy Agent",
      "description": "Description: Port used by Railway healthchecks for Convoy Agent.",
      "secret": false,
      "strategy": "default",
      "default": "5008"
    },
    {
      "key": "AGENT_PORT",
      "service": "Convoy Agent",
      "description": "Description: Convoy Agent HTTP port.",
      "secret": false,
      "strategy": "default",
      "default": "5008"
    },
    {
      "key": "CONVOY_DB_HOST",
      "service": "Convoy Agent",
      "description": "Description: Private Railway Postgres host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_DB_PORT",
      "service": "Convoy Agent",
      "description": "Description: Private Railway Postgres port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_DB_OPTIONS",
      "service": "Convoy Agent",
      "description": "Description: Connection options for private Railway Postgres networking.",
      "secret": false,
      "strategy": "default",
      "default": "sslmode=disable&connect_timeout=30"
    },
    {
      "key": "CONVOY_JWT_SECRET",
      "service": "Convoy Agent",
      "description": "Description: Reuses the generated server JWT secret.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_REDIS_HOST",
      "service": "Convoy Agent",
      "description": "Description: Private Railway Redis host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_REDIS_PORT",
      "service": "Convoy Agent",
      "description": "Description: Private Railway Redis port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_DB_DATABASE",
      "service": "Convoy Agent",
      "description": "Description: Postgres database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_DB_PASSWORD",
      "service": "Convoy Agent",
      "description": "Description: Postgres password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_DB_USERNAME",
      "service": "Convoy Agent",
      "description": "Description: Postgres username.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_REDIS_SCHEME",
      "service": "Convoy Agent",
      "description": "Description: Redis scheme for private Railway Redis.",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "CONVOY_REDIS_PASSWORD",
      "service": "Convoy Agent",
      "description": "Description: Redis password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_REDIS_USERNAME",
      "service": "Convoy Agent",
      "description": "Description: Redis username, if provided by the Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_JWT_REFRESH_SECRET",
      "service": "Convoy Agent",
      "description": "Description: Reuses the generated server refresh secret.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "Convoy Server",
      "description": "Description: Port used by Convoy Server and Railway healthchecks.",
      "secret": false,
      "strategy": "default",
      "default": "5005"
    },
    {
      "key": "CONVOY_HOST",
      "service": "Convoy Server",
      "description": "Description: Public base URL for Convoy dashboard, API, portal, and webhook URLs.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CONVOY_DB_HOST",
      "service": "Convoy Server",
      "description": "Description: Private Railway Postgres host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_DB_PORT",
      "service": "Convoy Server",
      "description": "Description: Private Railway Postgres port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_DB_OPTIONS",
      "service": "Convoy Server",
      "description": "Description: Connection options for private Railway Postgres networking.",
      "secret": false,
      "strategy": "default",
      "default": "sslmode=disable&connect_timeout=30"
    },
    {
      "key": "CONVOY_JWT_SECRET",
      "service": "Convoy Server",
      "description": "Description: Generated JWT signing secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CONVOY_REDIS_HOST",
      "service": "Convoy Server",
      "description": "Description: Private Railway Redis host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_REDIS_PORT",
      "service": "Convoy Server",
      "description": "Description: Private Railway Redis port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_DB_DATABASE",
      "service": "Convoy Server",
      "description": "Description: Postgres database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_DB_PASSWORD",
      "service": "Convoy Server",
      "description": "Description: Postgres password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_DB_USERNAME",
      "service": "Convoy Server",
      "description": "Description: Postgres username.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_LOGGER_LEVEL",
      "service": "Convoy Server",
      "description": "Description: Default log level.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "CONVOY_REDIS_SCHEME",
      "service": "Convoy Server",
      "description": "Description: Redis scheme for private Railway Redis.",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "CONVOY_REDIS_PASSWORD",
      "service": "Convoy Server",
      "description": "Description: Redis password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_REDIS_USERNAME",
      "service": "Convoy Server",
      "description": "Description: Redis username, if provided by the Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONVOY_SIGNUP_ENABLED",
      "service": "Convoy Server",
      "description": "Description: Allows first users to sign up; disable after initial setup if invite-only access is required.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CONVOY_JWT_REFRESH_SECRET",
      "service": "Convoy Server",
      "description": "Description: Generated JWT refresh-token secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CONVOY_NATIVE_REALM_ENABLED",
      "service": "Convoy Server",
      "description": "Description: Enables native username/password authentication.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "convoy"
      }
    },
    "cli": "railway deploy --template convoy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2c685cdc-5b6c-46bd-9398-1bfc1f464f61",
            "serializedConfig": {
              "services": {
                "18e05bf4-e388-4893-8aca-54de734945f0": {
                  "icon": "https://www.getconvoy.io/svg/convoy-logo-new.svg",
                  "name": "Convoy Gateway",
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "repo": "zawlodzki/convoy-railway-template",
                    "branch": null,
                    "rootDirectory": "railway/gateway"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Description: Public HTTP port for Railway to route to Caddy.",
                      "defaultValue": "8080"
                    },
                    "CONVOY_AGENT_PRIVATE_DOMAIN": {
                      "description": "Description: Private hostname for Convoy Agent.",
                      "defaultValue": "${{Convoy Agent.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "CONVOY_SERVER_PRIVATE_DOMAIN": {
                      "description": "Description: Private hostname for Convoy Server.",
                      "defaultValue": "${{Convoy Server.RAILWAY_PRIVATE_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "32a42642-66b3-4b94-bee7-f1ef7daf5d1e": {
                  "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:18"
                  },
                  "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": {
                    "32a42642-66b3-4b94-bee7-f1ef7daf5d1e": {
                      "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."
                  }
                },
                "9fb77de5-ca54-4f1a-9c4e-8e333f1bf113": {
                  "icon": "https://www.getconvoy.io/svg/convoy-logo-new.svg",
                  "name": "Convoy Agent",
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "repo": "zawlodzki/convoy-railway-template",
                    "branch": null,
                    "rootDirectory": "railway/agent"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Description: Port used by Railway healthchecks for Convoy Agent.",
                      "defaultValue": "5008"
                    },
                    "AGENT_PORT": {
                      "description": "Description: Convoy Agent HTTP port.",
                      "defaultValue": "5008"
                    },
                    "CONVOY_DB_HOST": {
                      "description": "Description: Private Railway Postgres host.",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "CONVOY_DB_PORT": {
                      "description": "Description: Private Railway Postgres port.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "CONVOY_DB_OPTIONS": {
                      "description": "Description: Connection options for private Railway Postgres networking.",
                      "defaultValue": "sslmode=disable&connect_timeout=30"
                    },
                    "CONVOY_JWT_SECRET": {
                      "description": "Description: Reuses the generated server JWT secret.",
                      "defaultValue": "${{Convoy Server.CONVOY_JWT_SECRET}}"
                    },
                    "CONVOY_REDIS_HOST": {
                      "description": "Description: Private Railway Redis host.",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "CONVOY_REDIS_PORT": {
                      "description": "Description: Private Railway Redis port.",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "CONVOY_DB_DATABASE": {
                      "description": "Description: Postgres database name.",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "CONVOY_DB_PASSWORD": {
                      "description": "Description: Postgres password.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "CONVOY_DB_USERNAME": {
                      "description": "Description: Postgres username.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "CONVOY_REDIS_SCHEME": {
                      "description": "Description: Redis scheme for private Railway Redis.",
                      "defaultValue": "redis"
                    },
                    "CONVOY_REDIS_PASSWORD": {
                      "description": "Description: Redis password.",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "CONVOY_REDIS_USERNAME": {
                      "description": "Description: Redis username, if provided by the Redis service.",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "CONVOY_JWT_REFRESH_SECRET": {
                      "description": "Description: Reuses the generated server refresh secret.",
                      "defaultValue": "${{Convoy Server.CONVOY_JWT_REFRESH_SECRET}}"
                    }
                  }
                },
                "ae184ea5-062c-409f-ae2d-45ff355172fa": {
                  "icon": "https://www.getconvoy.io/svg/convoy-logo-new.svg",
                  "name": "Convoy Server",
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "preDeployCommand": [
                      "/cmd migrate up"
                    ],
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "repo": "zawlodzki/convoy-railway-template",
                    "branch": null,
                    "rootDirectory": "railway/server"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Description: Port used by Convoy Server and Railway healthchecks.",
                      "defaultValue": "5005"
                    },
                    "CONVOY_HOST": {
                      "description": "Description: Public base URL for Convoy dashboard, API, portal, and webhook URLs.",
                      "defaultValue": "https://${{Convoy Gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CONVOY_DB_HOST": {
                      "description": "Description: Private Railway Postgres host.",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "CONVOY_DB_PORT": {
                      "description": "Description: Private Railway Postgres port.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "CONVOY_DB_OPTIONS": {
                      "description": "Description: Connection options for private Railway Postgres networking.",
                      "defaultValue": "sslmode=disable&connect_timeout=30"
                    },
                    "CONVOY_JWT_SECRET": {
                      "description": "Description: Generated JWT signing secret.",
                      "defaultValue": "{{CONVOY_JWT_SECRET}}"
                    },
                    "CONVOY_REDIS_HOST": {
                      "description": "Description: Private Railway Redis host.",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "CONVOY_REDIS_PORT": {
                      "description": "Description: Private Railway Redis port.",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "CONVOY_DB_DATABASE": {
                      "description": "Description: Postgres database name.",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "CONVOY_DB_PASSWORD": {
                      "description": "Description: Postgres password.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "CONVOY_DB_USERNAME": {
                      "description": "Description: Postgres username.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "CONVOY_LOGGER_LEVEL": {
                      "description": "Description: Default log level.",
                      "defaultValue": "info"
                    },
                    "CONVOY_REDIS_SCHEME": {
                      "description": "Description: Redis scheme for private Railway Redis.",
                      "defaultValue": "redis"
                    },
                    "CONVOY_REDIS_PASSWORD": {
                      "description": "Description: Redis password.",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "CONVOY_REDIS_USERNAME": {
                      "description": "Description: Redis username, if provided by the Redis service.",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "CONVOY_SIGNUP_ENABLED": {
                      "description": "Description: Allows first users to sign up; disable after initial setup if invite-only access is required.",
                      "defaultValue": "true"
                    },
                    "CONVOY_JWT_REFRESH_SECRET": {
                      "description": "Description: Generated JWT refresh-token secret.",
                      "defaultValue": "{{CONVOY_JWT_REFRESH_SECRET}}"
                    },
                    "CONVOY_NATIVE_REALM_ENABLED": {
                      "description": "Description: Enables native username/password authentication.",
                      "defaultValue": "true"
                    }
                  }
                },
                "cc098643-8cb1-4789-84a2-f49bf04f5ed8": {
                  "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\""
                  },
                  "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": {
                    "cc098643-8cb1-4789-84a2-f49bf04f5ed8": {
                      "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Convoy Gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T10:38:29.852Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_03bdeb52d89b43acba9c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 136,
    "typical_build_seconds": 16,
    "typical_start_seconds": 35,
    "slowest_service": "Convoy Gateway"
  }
}
