{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cbd68b60-fb8f-462b-9a9f-86fafff10f5f",
    "slug": "chatwoot-customer-support",
    "name": "Chatwoot",
    "description": "Intercom, Zendesk Alternative: Modern customer support platform",
    "url": "https://railway.com/deploy/chatwoot-customer-support",
    "upstream": {
      "image": "chatwoot/chatwoot:v4.16.2-ce"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "chatwoot-web",
      "source": {
        "image": "chatwoot/chatwoot:v4.16.2-ce"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "chatwoot-worker",
      "source": {
        "image": "chatwoot/chatwoot:v4.16.2-ce"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Standard Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default ACL user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Convenience alias of the generated password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Generated password for the default user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public connection string over the TCP proxy, for external tools",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "chatwoot-web",
      "description": "HTTP port, matches public target port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NODE_ENV",
      "service": "chatwoot-web",
      "description": "Node environment for asset serving",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "FORCE_SSL",
      "service": "chatwoot-web",
      "description": "HSTS and secure session cookies",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LOG_LEVEL",
      "service": "chatwoot-web",
      "description": "Application log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "RAILS_ENV",
      "service": "chatwoot-web",
      "description": "Rails environment",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "chatwoot-web",
      "description": "Sidekiq queues and ActionCable",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "chatwoot-web",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRONTEND_URL",
      "service": "chatwoot-web",
      "description": "Public base URL for links and emails",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DEFAULT_LOCALE",
      "service": "chatwoot-web",
      "description": "Locale seeded onto new accounts",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "STORAGE_REGION",
      "service": "chatwoot-web",
      "description": "Bucket signing region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "chatwoot-web",
      "description": "Signs sessions, keep stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WEB_CONCURRENCY",
      "service": "chatwoot-web",
      "description": "Puma cluster worker processes",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "INSTALLATION_ENV",
      "service": "chatwoot-web",
      "description": "Reported installation method",
      "secret": false,
      "strategy": "default",
      "default": "docker"
    },
    {
      "key": "STORAGE_ENDPOINT",
      "service": "chatwoot-web",
      "description": "S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RACK_ATTACK_LIMIT",
      "service": "chatwoot-web",
      "description": "Requests per five-minute window",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "RAILS_MAX_THREADS",
      "service": "chatwoot-web",
      "description": "Puma max threads per worker",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "RAILS_MIN_THREADS",
      "service": "chatwoot-web",
      "description": "Puma min threads per worker",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "ENABLE_RACK_ATTACK",
      "service": "chatwoot-web",
      "description": "Enable request rate limiting",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MAILER_SENDER_EMAIL",
      "service": "chatwoot-web",
      "description": "Default outbound sender address",
      "secret": false,
      "strategy": "default",
      "default": "Chatwoot <support@example.com>"
    },
    {
      "key": "RAILS_LOG_TO_STDOUT",
      "service": "chatwoot-web",
      "description": "Send logs to the platform",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SIDEKIQ_CONCURRENCY",
      "service": "chatwoot-web",
      "description": "Also sizes the Sidekiq DB pool",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "STORAGE_BUCKET_NAME",
      "service": "chatwoot-web",
      "description": "Attachment bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENABLE_ACCOUNT_SIGNUP",
      "service": "chatwoot-web",
      "description": "Blocks public account signup",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "STORAGE_ACCESS_KEY_ID",
      "service": "chatwoot-web",
      "description": "Bucket access key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_STORAGE_SERVICE",
      "service": "chatwoot-web",
      "description": "Store attachments in the bucket",
      "secret": false,
      "strategy": "default",
      "default": "s3_compatible"
    },
    {
      "key": "STORAGE_FORCE_PATH_STYLE",
      "service": "chatwoot-web",
      "description": "Virtual-host bucket addressing",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "STORAGE_SECRET_ACCESS_KEY",
      "service": "chatwoot-web",
      "description": "Bucket secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_STATEMENT_TIMEOUT",
      "service": "chatwoot-web",
      "description": "Per-statement timeout for the app",
      "secret": false,
      "strategy": "default",
      "default": "14s"
    },
    {
      "key": "ENABLE_RACK_ATTACK_WIDGET_API",
      "service": "chatwoot-web",
      "description": "Rate limit the widget API too",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY",
      "service": "chatwoot-web",
      "description": "Encrypts MFA secrets",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY",
      "service": "chatwoot-web",
      "description": "Deterministic encryption key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT",
      "service": "chatwoot-web",
      "description": "Key derivation salt",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NODE_ENV",
      "service": "chatwoot-worker",
      "description": "Node environment",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "LOG_LEVEL",
      "service": "chatwoot-worker",
      "description": "Application log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "RAILS_ENV",
      "service": "chatwoot-worker",
      "description": "Rails environment",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "chatwoot-worker",
      "description": "Sidekiq queue backend",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "chatwoot-worker",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRONTEND_URL",
      "service": "chatwoot-worker",
      "description": "Public base URL used in jobs",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DEFAULT_LOCALE",
      "service": "chatwoot-worker",
      "description": "Locale seeded onto new accounts",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "STORAGE_REGION",
      "service": "chatwoot-worker",
      "description": "Bucket signing region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "chatwoot-worker",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INSTALLATION_ENV",
      "service": "chatwoot-worker",
      "description": "Reported installation method",
      "secret": false,
      "strategy": "default",
      "default": "docker"
    },
    {
      "key": "STORAGE_ENDPOINT",
      "service": "chatwoot-worker",
      "description": "S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAILER_SENDER_EMAIL",
      "service": "chatwoot-worker",
      "description": "Default outbound sender address",
      "secret": false,
      "strategy": "default",
      "default": "Chatwoot <support@example.com>"
    },
    {
      "key": "RAILS_LOG_TO_STDOUT",
      "service": "chatwoot-worker",
      "description": "Send logs to the platform",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SIDEKIQ_CONCURRENCY",
      "service": "chatwoot-worker",
      "description": "Worker threads and DB pool size",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "STORAGE_BUCKET_NAME",
      "service": "chatwoot-worker",
      "description": "Attachment bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_ACCESS_KEY_ID",
      "service": "chatwoot-worker",
      "description": "Bucket access key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_STORAGE_SERVICE",
      "service": "chatwoot-worker",
      "description": "Store attachments in the bucket",
      "secret": false,
      "strategy": "default",
      "default": "s3_compatible"
    },
    {
      "key": "STORAGE_FORCE_PATH_STYLE",
      "service": "chatwoot-worker",
      "description": "Virtual-host bucket addressing",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "STORAGE_SECRET_ACCESS_KEY",
      "service": "chatwoot-worker",
      "description": "Bucket secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_STATEMENT_TIMEOUT",
      "service": "chatwoot-worker",
      "description": "Per-statement timeout for jobs",
      "secret": false,
      "strategy": "default",
      "default": "14s"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY",
      "service": "chatwoot-worker",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY",
      "service": "chatwoot-worker",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT",
      "service": "chatwoot-worker",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory, a subdirectory of the volume mount",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Standard PostgreSQL port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "libpq alias of the superuser name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "libpq alias of the default database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "libpq alias of the superuser password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity window of the generated self-signed TLS certificate",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public connection string over the TCP proxy, for external tools",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Grace period for in-flight connections on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chatwoot-customer-support"
      }
    },
    "cli": "railway deploy --template chatwoot-customer-support",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cbd68b60-fb8f-462b-9a9f-86fafff10f5f",
            "serializedConfig": {
              "buckets": {
                "8b4ef1c6-1226-44d9-9dd3-2a38f68bfc4d": {
                  "name": "chatwoot-storage"
                }
              },
              "services": {
                "19232b93-332f-4fa3-ac56-1924b63027c3": {
                  "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\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Standard Redis port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default ACL user created on first boot",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Convenience alias of the generated password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the default user",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Public connection string over the TCP proxy, for external tools",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "19232b93-332f-4fa3-ac56-1924b63027c3": {
                      "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."
                  }
                },
                "3824fb42-9c5b-43cc-b34f-f8fbf2109702": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/chatwoot.svg",
                  "name": "chatwoot-web",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'echo \"Rails.application.config.assume_ssl = true\" > /app/config/initializers/zz_railway_assume_ssl.rb; exec bundle exec rails s -p 3000 -b 0.0.0.0'",
                    "healthcheckPath": "/health",
                    "preDeployCommand": [
                      "/bin/sh -c 'POSTGRES_STATEMENT_TIMEOUT=600s bundle exec rails db:chatwoot_prepare'"
                    ],
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chatwoot/chatwoot:v4.16.2-ce"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port, matches public target port",
                      "defaultValue": "3000"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Node environment for asset serving",
                      "defaultValue": "production"
                    },
                    "FORCE_SSL": {
                      "isOptional": false,
                      "description": "HSTS and secure session cookies",
                      "defaultValue": "true"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Application log verbosity",
                      "defaultValue": "info"
                    },
                    "RAILS_ENV": {
                      "isOptional": false,
                      "description": "Rails environment",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Sidekiq queues and ActionCable",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Public base URL for links and emails",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DEFAULT_LOCALE": {
                      "isOptional": false,
                      "description": "Locale seeded onto new accounts",
                      "defaultValue": "en"
                    },
                    "STORAGE_REGION": {
                      "isOptional": false,
                      "description": "Bucket signing region",
                      "defaultValue": "${{chatwoot-storage.REGION}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Signs sessions, keep stable",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "WEB_CONCURRENCY": {
                      "isOptional": false,
                      "description": "Puma cluster worker processes",
                      "defaultValue": "2"
                    },
                    "INSTALLATION_ENV": {
                      "isOptional": false,
                      "description": "Reported installation method",
                      "defaultValue": "docker"
                    },
                    "STORAGE_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint",
                      "defaultValue": "${{chatwoot-storage.ENDPOINT}}"
                    },
                    "RACK_ATTACK_LIMIT": {
                      "isOptional": false,
                      "description": "Requests per five-minute window",
                      "defaultValue": "300"
                    },
                    "RAILS_MAX_THREADS": {
                      "isOptional": false,
                      "description": "Puma max threads per worker",
                      "defaultValue": "5"
                    },
                    "RAILS_MIN_THREADS": {
                      "isOptional": false,
                      "description": "Puma min threads per worker",
                      "defaultValue": "5"
                    },
                    "ENABLE_RACK_ATTACK": {
                      "isOptional": false,
                      "description": "Enable request rate limiting",
                      "defaultValue": "true"
                    },
                    "MAILER_SENDER_EMAIL": {
                      "isOptional": false,
                      "description": "Default outbound sender address",
                      "defaultValue": "Chatwoot <support@example.com>"
                    },
                    "RAILS_LOG_TO_STDOUT": {
                      "isOptional": false,
                      "description": "Send logs to the platform",
                      "defaultValue": "true"
                    },
                    "SIDEKIQ_CONCURRENCY": {
                      "isOptional": false,
                      "description": "Also sizes the Sidekiq DB pool",
                      "defaultValue": "10"
                    },
                    "STORAGE_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Attachment bucket name",
                      "defaultValue": "${{chatwoot-storage.BUCKET}}"
                    },
                    "ENABLE_ACCOUNT_SIGNUP": {
                      "isOptional": false,
                      "description": "Blocks public account signup",
                      "defaultValue": "false"
                    },
                    "STORAGE_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key id",
                      "defaultValue": "${{chatwoot-storage.ACCESS_KEY_ID}}"
                    },
                    "ACTIVE_STORAGE_SERVICE": {
                      "isOptional": false,
                      "description": "Store attachments in the bucket",
                      "defaultValue": "s3_compatible"
                    },
                    "STORAGE_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Virtual-host bucket addressing",
                      "defaultValue": "false"
                    },
                    "STORAGE_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret access key",
                      "defaultValue": "${{chatwoot-storage.SECRET_ACCESS_KEY}}"
                    },
                    "POSTGRES_STATEMENT_TIMEOUT": {
                      "isOptional": false,
                      "description": "Per-statement timeout for the app",
                      "defaultValue": "14s"
                    },
                    "ENABLE_RACK_ATTACK_WIDGET_API": {
                      "isOptional": false,
                      "description": "Rate limit the widget API too",
                      "defaultValue": "true"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY": {
                      "isOptional": false,
                      "description": "Encrypts MFA secrets",
                      "defaultValue": "{{ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY": {
                      "isOptional": false,
                      "description": "Deterministic encryption key",
                      "defaultValue": "{{ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT": {
                      "isOptional": false,
                      "description": "Key derivation salt",
                      "defaultValue": "{{ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "3b2344c3-e5a9-4760-9a0f-0d6773c5e638": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/chatwoot.svg",
                  "name": "chatwoot-worker",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'bundle exec rails ip_lookup:setup && exec bundle exec sidekiq -C config/sidekiq.yml'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chatwoot/chatwoot:v4.16.2-ce"
                  },
                  "variables": {
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Node environment",
                      "defaultValue": "production"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Application log verbosity",
                      "defaultValue": "info"
                    },
                    "RAILS_ENV": {
                      "isOptional": false,
                      "description": "Rails environment",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Sidekiq queue backend",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Public base URL used in jobs",
                      "defaultValue": "https://${{chatwoot-web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DEFAULT_LOCALE": {
                      "isOptional": false,
                      "description": "Locale seeded onto new accounts",
                      "defaultValue": "en"
                    },
                    "STORAGE_REGION": {
                      "isOptional": false,
                      "description": "Bucket signing region",
                      "defaultValue": "${{chatwoot-storage.REGION}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{chatwoot-web.SECRET_KEY_BASE}}"
                    },
                    "INSTALLATION_ENV": {
                      "isOptional": false,
                      "description": "Reported installation method",
                      "defaultValue": "docker"
                    },
                    "STORAGE_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint",
                      "defaultValue": "${{chatwoot-storage.ENDPOINT}}"
                    },
                    "MAILER_SENDER_EMAIL": {
                      "isOptional": false,
                      "description": "Default outbound sender address",
                      "defaultValue": "Chatwoot <support@example.com>"
                    },
                    "RAILS_LOG_TO_STDOUT": {
                      "isOptional": false,
                      "description": "Send logs to the platform",
                      "defaultValue": "true"
                    },
                    "SIDEKIQ_CONCURRENCY": {
                      "isOptional": false,
                      "description": "Worker threads and DB pool size",
                      "defaultValue": "10"
                    },
                    "STORAGE_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Attachment bucket name",
                      "defaultValue": "${{chatwoot-storage.BUCKET}}"
                    },
                    "STORAGE_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key id",
                      "defaultValue": "${{chatwoot-storage.ACCESS_KEY_ID}}"
                    },
                    "ACTIVE_STORAGE_SERVICE": {
                      "isOptional": false,
                      "description": "Store attachments in the bucket",
                      "defaultValue": "s3_compatible"
                    },
                    "STORAGE_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Virtual-host bucket addressing",
                      "defaultValue": "false"
                    },
                    "STORAGE_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret access key",
                      "defaultValue": "${{chatwoot-storage.SECRET_ACCESS_KEY}}"
                    },
                    "POSTGRES_STATEMENT_TIMEOUT": {
                      "description": "Per-statement timeout for jobs",
                      "defaultValue": "14s"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{chatwoot-web.ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{chatwoot-web.ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{chatwoot-web.ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT}}"
                    }
                  }
                },
                "4a64ec72-9167-4718-bbdb-53148284a851": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory, a subdirectory of the volume mount",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Standard PostgreSQL port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "libpq alias of the superuser name",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "libpq alias of the default database",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "libpq alias of the superuser password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Validity window of the generated self-signed TLS certificate",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public connection string over the TCP proxy, for external tools",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Grace period for in-flight connections on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "4a64ec72-9167-4718-bbdb-53148284a851": {
                      "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "chatwoot-web",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-05T12:07:37.488Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_fc6d8cf536cf46788312",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 98,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "chatwoot-worker"
  }
}
