{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fe841ef1-811e-42b0-a832-23fbc15ab093",
    "slug": "self-hosted-twenty-crm",
    "name": "Twenty CRM (Self-Hosted Salesforce Alternative)",
    "description": "Self-host Twenty CRM: a modern Salesforce alternative with no seat fees.",
    "url": "https://railway.com/deploy/self-hosted-twenty-crm"
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Twenty",
      "source": {
        "image": "twentycrm/twenty:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/packages/twenty/data",
      "http": false
    },
    {
      "name": "Twenty Worker",
      "source": {
        "image": "twentycrm/twenty:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Twenty",
      "description": "Port Railway routes traffic to; references NODE_PORT (3000).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NODE_PORT",
      "service": "Twenty",
      "description": "Port the Twenty server listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "REDIS_URL",
      "service": "Twenty",
      "description": "Private Redis connection for the BullMQ job queue and cache, referenced from the Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_SECRET",
      "service": "Twenty",
      "description": "Generated secret that signs sessions and encrypts stored secrets; the worker references the same value.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SERVER_URL",
      "service": "Twenty",
      "description": "Public HTTPS URL of Twenty; must match the domain you open, or login redirects in a loop.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "STORAGE_TYPE",
      "service": "Twenty",
      "description": "Where uploads are stored: s3 (the Railway Bucket) or local (the volume).",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    },
    {
      "key": "PG_DATABASE_URL",
      "service": "Twenty",
      "description": "Postgres connection string for CRM data, referenced from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_NAME",
      "service": "Twenty",
      "description": "Bucket name for uploads, referenced from the Railway Bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_REGION",
      "service": "Twenty",
      "description": "Bucket region, referenced from the Railway Bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_LOCAL_PATH",
      "service": "Twenty",
      "description": "Folder for uploads when STORAGE_TYPE is local.",
      "secret": false,
      "strategy": "default",
      "default": "data"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "Twenty",
      "description": "S3 endpoint of the bucket, referenced from the Railway Bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DISABLE_DB_MIGRATIONS",
      "service": "Twenty",
      "description": "false on the server so it runs database migrations at startup.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY_ID",
      "service": "Twenty",
      "description": "Bucket access key, referenced from the Railway Bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_SECRET_ACCESS_KEY",
      "service": "Twenty",
      "description": "Bucket secret key, referenced from the Railway Bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DISABLE_CRON_JOBS_REGISTRATION",
      "service": "Twenty",
      "description": "false on the server so it registers the scheduled background jobs.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "Twenty",
      "description": "Lets the Alpine-based image resolve Railway private (IPv6) hostnames.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDIS_URL",
      "service": "Twenty Worker",
      "description": "Private Redis connection for the BullMQ job queue the worker consumes.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_SECRET",
      "service": "Twenty Worker",
      "description": "References the server APP_SECRET; both must match or sessions and stored secrets break.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SERVER_URL",
      "service": "Twenty Worker",
      "description": "References the server public URL, used in links the worker sends.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_TYPE",
      "service": "Twenty Worker",
      "description": "References the server storage type so the worker reads the same uploads.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PG_DATABASE_URL",
      "service": "Twenty Worker",
      "description": "Postgres connection string for CRM data, referenced from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_NAME",
      "service": "Twenty Worker",
      "description": "References the server bucket name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_REGION",
      "service": "Twenty Worker",
      "description": "References the server bucket region.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_LOCAL_PATH",
      "service": "Twenty Worker",
      "description": "References the server local upload folder.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_ENDPOINT",
      "service": "Twenty Worker",
      "description": "References the server bucket endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DISABLE_DB_MIGRATIONS",
      "service": "Twenty Worker",
      "description": "true on the worker; only the server runs migrations.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "STORAGE_S3_ACCESS_KEY_ID",
      "service": "Twenty Worker",
      "description": "References the server bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_S3_SECRET_ACCESS_KEY",
      "service": "Twenty Worker",
      "description": "References the server bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DISABLE_CRON_JOBS_REGISTRATION",
      "service": "Twenty Worker",
      "description": "true on the worker; the server registers scheduled jobs.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "Twenty Worker",
      "description": "Lets the Alpine-based image resolve Railway private (IPv6) hostnames.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "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": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis",
      "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": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis",
      "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": "self-hosted-twenty-crm"
      }
    },
    "cli": "railway deploy --template self-hosted-twenty-crm",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fe841ef1-811e-42b0-a832-23fbc15ab093",
            "serializedConfig": {
              "buckets": {
                "669483fb-5047-400e-be8e-3ac973ab22e9": {
                  "name": "Bucket"
                }
              },
              "services": {
                "050f621f-1743-48ef-846a-5200e9c790ab": {
                  "icon": "https://raw.githubusercontent.com/twentyhq/twenty/6fd8dab55243cda291fa45f896caaa9d5e5160b8/packages/twenty-chrome-extension/public/logo/32-32.svg",
                  "name": "Twenty",
                  "source": {
                    "image": "twentycrm/twenty:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes traffic to; references NODE_PORT (3000).",
                      "defaultValue": "${{Twenty.NODE_PORT}}"
                    },
                    "NODE_PORT": {
                      "isOptional": false,
                      "description": "Port the Twenty server listens on.",
                      "defaultValue": "3000"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private Redis connection for the BullMQ job queue and cache, referenced from the Redis service.",
                      "defaultValue": "${{Redis.REDIS_URL}}?family=0"
                    },
                    "APP_SECRET": {
                      "isOptional": false,
                      "description": "Generated secret that signs sessions and encrypts stored secrets; the worker references the same value.",
                      "defaultValue": "{{APP_SECRET}}"
                    },
                    "SERVER_URL": {
                      "isOptional": false,
                      "description": "Public HTTPS URL of Twenty; must match the domain you open, or login redirects in a loop.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "STORAGE_TYPE": {
                      "isOptional": false,
                      "description": "Where uploads are stored: s3 (the Railway Bucket) or local (the volume).",
                      "defaultValue": "s3"
                    },
                    "PG_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string for CRM data, referenced from the Postgres service.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "STORAGE_S3_NAME": {
                      "isOptional": false,
                      "description": "Bucket name for uploads, referenced from the Railway Bucket.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "STORAGE_S3_REGION": {
                      "isOptional": false,
                      "description": "Bucket region, referenced from the Railway Bucket.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "STORAGE_LOCAL_PATH": {
                      "isOptional": false,
                      "description": "Folder for uploads when STORAGE_TYPE is local.",
                      "defaultValue": "data"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 endpoint of the bucket, referenced from the Railway Bucket.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "DISABLE_DB_MIGRATIONS": {
                      "isOptional": false,
                      "description": "false on the server so it runs database migrations at startup.",
                      "defaultValue": "false"
                    },
                    "STORAGE_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key, referenced from the Railway Bucket.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "STORAGE_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key, referenced from the Railway Bucket.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "DISABLE_CRON_JOBS_REGISTRATION": {
                      "isOptional": false,
                      "description": "false on the server so it registers the scheduled background jobs.",
                      "defaultValue": "false"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "isOptional": false,
                      "description": "Lets the Alpine-based image resolve Railway private (IPv6) hostnames.",
                      "defaultValue": "true"
                    }
                  },
                  "volumeMounts": {
                    "050f621f-1743-48ef-846a-5200e9c790ab": {
                      "mountPath": "/app/packages/twenty/data"
                    }
                  }
                },
                "17585d08-3360-43f9-920d-b1bcc13a60c3": {
                  "icon": "https://raw.githubusercontent.com/twentyhq/twenty/6fd8dab55243cda291fa45f896caaa9d5e5160b8/packages/twenty-chrome-extension/public/logo/32-32.svg",
                  "name": "Twenty Worker",
                  "source": {
                    "image": "twentycrm/twenty:latest"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private Redis connection for the BullMQ job queue the worker consumes.",
                      "defaultValue": "${{Redis.REDIS_URL}}?family=0"
                    },
                    "APP_SECRET": {
                      "isOptional": false,
                      "description": "References the server APP_SECRET; both must match or sessions and stored secrets break.",
                      "defaultValue": "${{Twenty.APP_SECRET}}"
                    },
                    "SERVER_URL": {
                      "isOptional": false,
                      "description": "References the server public URL, used in links the worker sends.",
                      "defaultValue": "${{Twenty.SERVER_URL}}"
                    },
                    "STORAGE_TYPE": {
                      "isOptional": false,
                      "description": "References the server storage type so the worker reads the same uploads.",
                      "defaultValue": "${{Twenty.STORAGE_TYPE}}"
                    },
                    "PG_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string for CRM data, referenced from the Postgres service.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "STORAGE_S3_NAME": {
                      "isOptional": false,
                      "description": "References the server bucket name.",
                      "defaultValue": "${{Twenty.STORAGE_S3_NAME}}"
                    },
                    "STORAGE_S3_REGION": {
                      "isOptional": false,
                      "description": "References the server bucket region.",
                      "defaultValue": "${{Twenty.STORAGE_S3_REGION}}"
                    },
                    "STORAGE_LOCAL_PATH": {
                      "isOptional": false,
                      "description": "References the server local upload folder.",
                      "defaultValue": "${{Twenty.STORAGE_LOCAL_PATH}}"
                    },
                    "STORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "References the server bucket endpoint.",
                      "defaultValue": "${{Twenty.STORAGE_S3_ENDPOINT}}"
                    },
                    "DISABLE_DB_MIGRATIONS": {
                      "isOptional": false,
                      "description": "true on the worker; only the server runs migrations.",
                      "defaultValue": "true"
                    },
                    "STORAGE_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "References the server bucket access key.",
                      "defaultValue": "${{Twenty.STORAGE_S3_ACCESS_KEY_ID}}"
                    },
                    "STORAGE_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "References the server bucket secret key.",
                      "defaultValue": "${{Twenty.STORAGE_S3_SECRET_ACCESS_KEY}}"
                    },
                    "DISABLE_CRON_JOBS_REGISTRATION": {
                      "isOptional": false,
                      "description": "true on the worker; the server registers scheduled jobs.",
                      "defaultValue": "true"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "isOptional": false,
                      "description": "Lets the Alpine-based image resolve Railway private (IPv6) hostnames.",
                      "defaultValue": "true"
                    }
                  }
                },
                "18163698-423e-420b-b02c-a724407573cd": {
                  "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": {
                    "18163698-423e-420b-b02c-a724407573cd": {
                      "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."
                  }
                },
                "901a9fa6-ddf7-4b45-98b7-f1080057023c": {
                  "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"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port that Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Username for authenticating with Redis",
                      "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,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Randomly generated password for authenticating with Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to redis externally",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    }
                  },
                  "volumeMounts": {
                    "901a9fa6-ddf7-4b45-98b7-f1080057023c": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha"
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-11-03T16:15:12.305Z",
  "generator_version": "0.1.0"
}
