{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f5cf9598-4851-412e-a010-64f18259911b",
    "slug": "chatwoot-sidekiq-worker",
    "name": "Chatwoot (Sidekiq Worker)",
    "description": "Intercom alternative with a dedicated Sidekiq worker and shared storage",
    "url": "https://railway.com/deploy/chatwoot-sidekiq-worker",
    "upstream": {
      "image": "chatwoot/chatwoot:v4.16.2-ce"
    }
  },
  "services": [
    {
      "name": "Sidekiq",
      "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
    },
    {
      "name": "Rails",
      "source": {
        "image": "chatwoot/chatwoot:v4.16.2-ce"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "NODE_ENV",
      "service": "Sidekiq",
      "description": "Node environment. Keep as production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "LOG_LEVEL",
      "service": "Sidekiq",
      "description": "Rails log level: debug, info, warn or error.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "RAILS_ENV",
      "service": "Sidekiq",
      "description": "Rails environment. Keep as production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "Sidekiq",
      "description": "Redis backing Sidekiq's queues and Chatwoot's caches.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_PORT",
      "service": "Sidekiq",
      "description": "SMTP port.",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "DATABASE_URL",
      "service": "Sidekiq",
      "description": "Postgres connection string over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRONTEND_URL",
      "service": "Sidekiq",
      "description": "Same public URL as Rails, so links in outgoing email resolve.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DEFAULT_LOCALE",
      "service": "Sidekiq",
      "description": "Language new accounts and signed-out pages default to.",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "STORAGE_REGION",
      "service": "Sidekiq",
      "description": "Region of the storage bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "Sidekiq",
      "description": "Must match Rails.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INSTALLATION_ENV",
      "service": "Sidekiq",
      "description": "Tells Chatwoot it is running from the Docker image.",
      "secret": false,
      "strategy": "default",
      "default": "docker"
    },
    {
      "key": "STORAGE_ENDPOINT",
      "service": "Sidekiq",
      "description": "S3 API endpoint for the bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAILER_SENDER_EMAIL",
      "service": "Sidekiq",
      "description": "From address on outgoing mail. Use a domain your SMTP provider can send for.",
      "secret": false,
      "strategy": "default",
      "default": "Chatwoot <no-reply@example.com>"
    },
    {
      "key": "RAILS_LOG_TO_STDOUT",
      "service": "Sidekiq",
      "description": "Send logs to Railway instead of a file inside the container.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SIDEKIQ_CONCURRENCY",
      "service": "Sidekiq",
      "description": "Jobs run in parallel per replica, and the size of this service's Postgres pool.",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "SMTP_AUTHENTICATION",
      "service": "Sidekiq",
      "description": "SMTP auth mechanism: plain, login or cram_md5.",
      "secret": false,
      "strategy": "default",
      "default": "plain"
    },
    {
      "key": "STORAGE_BUCKET_NAME",
      "service": "Sidekiq",
      "description": "Bucket holding uploads, avatars and generated exports.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENABLE_ACCOUNT_SIGNUP",
      "service": "Sidekiq",
      "description": "Public sign-ups: true, false, or api_only. The first admin is created by the installer regardless.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "STORAGE_ACCESS_KEY_ID",
      "service": "Sidekiq",
      "description": "Access key id for the bucket's S3 API.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_STORAGE_SERVICE",
      "service": "Sidekiq",
      "description": "Active Storage backend. s3_compatible points Chatwoot at the Railway bucket.",
      "secret": false,
      "strategy": "default",
      "default": "s3_compatible"
    },
    {
      "key": "STORAGE_FORCE_PATH_STYLE",
      "service": "Sidekiq",
      "description": "Railway buckets address objects by path, not by subdomain.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SMTP_ENABLE_STARTTLS_AUTO",
      "service": "Sidekiq",
      "description": "Upgrade the SMTP connection to TLS when the server offers it.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "STORAGE_SECRET_ACCESS_KEY",
      "service": "Sidekiq",
      "description": "Secret key for the bucket's S3 API.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY",
      "service": "Sidekiq",
      "description": "Must match Rails, or encrypted columns are unreadable here.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY",
      "service": "Sidekiq",
      "description": "Must match Rails.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT",
      "service": "Sidekiq",
      "description": "Must match Rails.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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 the 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 the Data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when the image starts.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Connection string used by Chatwoot over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to the Postgres database.",
      "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": "Generated password for the Postgres user.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allows Postgres to shut down cleanly.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "Rails",
      "description": "Port Puma binds. Must match the healthcheck probe.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NODE_ENV",
      "service": "Rails",
      "description": "Node environment. Keep as production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "LOG_LEVEL",
      "service": "Rails",
      "description": "Rails log level: debug, info, warn or error.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "RAILS_ENV",
      "service": "Rails",
      "description": "Rails environment. Keep as production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "Rails",
      "description": "Redis backing Sidekiq's queues and Chatwoot's caches.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_PORT",
      "service": "Rails",
      "description": "SMTP port.",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "DATABASE_URL",
      "service": "Rails",
      "description": "Postgres connection string over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRONTEND_URL",
      "service": "Rails",
      "description": "Public URL of this install. Used in emails, widget snippets and OAuth callbacks.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DEFAULT_LOCALE",
      "service": "Rails",
      "description": "Language new accounts and signed-out pages default to.",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "STORAGE_REGION",
      "service": "Rails",
      "description": "Region of the storage bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "Rails",
      "description": "Generated key signing sessions and cookies. Shared with Sidekiq.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INSTALLATION_ENV",
      "service": "Rails",
      "description": "Tells Chatwoot it is running from the Docker image.",
      "secret": false,
      "strategy": "default",
      "default": "docker"
    },
    {
      "key": "STORAGE_ENDPOINT",
      "service": "Rails",
      "description": "S3 API endpoint for the bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILS_MAX_THREADS",
      "service": "Rails",
      "description": "Puma threads, and the size of this service's Postgres pool.",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "MAILER_SENDER_EMAIL",
      "service": "Rails",
      "description": "From address on outgoing mail. Use a domain your SMTP provider can send for.",
      "secret": false,
      "strategy": "default",
      "default": "Chatwoot <no-reply@example.com>"
    },
    {
      "key": "RAILS_LOG_TO_STDOUT",
      "service": "Rails",
      "description": "Send logs to Railway instead of a file inside the container.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SMTP_AUTHENTICATION",
      "service": "Rails",
      "description": "SMTP auth mechanism: plain, login or cram_md5.",
      "secret": false,
      "strategy": "default",
      "default": "plain"
    },
    {
      "key": "STORAGE_BUCKET_NAME",
      "service": "Rails",
      "description": "Bucket holding uploads, avatars and generated exports.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENABLE_ACCOUNT_SIGNUP",
      "service": "Rails",
      "description": "Public sign-ups: true, false, or api_only. The first admin is created by the installer regardless.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "STORAGE_ACCESS_KEY_ID",
      "service": "Rails",
      "description": "Access key id for the bucket's S3 API.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_STORAGE_SERVICE",
      "service": "Rails",
      "description": "Active Storage backend. s3_compatible points Chatwoot at the Railway bucket.",
      "secret": false,
      "strategy": "default",
      "default": "s3_compatible"
    },
    {
      "key": "STORAGE_FORCE_PATH_STYLE",
      "service": "Rails",
      "description": "Railway buckets address objects by path, not by subdomain.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SMTP_ENABLE_STARTTLS_AUTO",
      "service": "Rails",
      "description": "Upgrade the SMTP connection to TLS when the server offers it.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "STORAGE_SECRET_ACCESS_KEY",
      "service": "Rails",
      "description": "Secret key for the bucket's S3 API.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY",
      "service": "Rails",
      "description": "Generated key encrypting sensitive columns, including 2FA secrets. Shared with Sidekiq.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY",
      "service": "Rails",
      "description": "Generated key for encrypted columns that must stay queryable. Shared with Sidekiq.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT",
      "service": "Rails",
      "description": "Generated salt for encryption key derivation. Shared with Sidekiq.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Railway private domain name for Redis.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default Redis user.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for Redis over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis, used by the Data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Generated password protecting Redis.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chatwoot-sidekiq-worker"
      }
    },
    "cli": "railway deploy --template chatwoot-sidekiq-worker",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f5cf9598-4851-412e-a010-64f18259911b",
            "serializedConfig": {
              "buckets": {
                "556ba4bc-0a92-4e8b-ac65-21ab9291e501": {
                  "name": "Bucket"
                }
              },
              "services": {
                "8259afd7-50be-4d12-a445-1a5be285b90d": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/chatwoot.svg",
                  "name": "Sidekiq",
                  "deploy": {
                    "startCommand": "bundle exec sidekiq -C config/sidekiq.yml",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "chatwoot/chatwoot:v4.16.2-ce"
                  },
                  "variables": {
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Node environment. Keep as production.",
                      "defaultValue": "production"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Rails log level: debug, info, warn or error.",
                      "defaultValue": "info"
                    },
                    "RAILS_ENV": {
                      "isOptional": false,
                      "description": "Rails environment. Keep as production.",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis backing Sidekiq's queues and Chatwoot's caches.",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "SMTP_PORT": {
                      "isOptional": true,
                      "description": "SMTP port.",
                      "defaultValue": "587"
                    },
                    "SMTP_DOMAIN": {
                      "isOptional": true,
                      "description": "HELO domain presented to the SMTP server.",
                      "defaultValue": ""
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string over the private network.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Same public URL as Rails, so links in outgoing email resolve.",
                      "defaultValue": "${{Rails.FRONTEND_URL}}"
                    },
                    "SMTP_ADDRESS": {
                      "isOptional": true,
                      "description": "SMTP host. Leave empty to disable outgoing email.",
                      "defaultValue": ""
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password.",
                      "defaultValue": ""
                    },
                    "SMTP_USERNAME": {
                      "isOptional": true,
                      "description": "SMTP username.",
                      "defaultValue": ""
                    },
                    "DEFAULT_LOCALE": {
                      "isOptional": false,
                      "description": "Language new accounts and signed-out pages default to.",
                      "defaultValue": "en"
                    },
                    "STORAGE_REGION": {
                      "isOptional": false,
                      "description": "Region of the storage bucket.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Must match Rails.",
                      "defaultValue": "${{Rails.SECRET_KEY_BASE}}"
                    },
                    "INSTALLATION_ENV": {
                      "isOptional": false,
                      "description": "Tells Chatwoot it is running from the Docker image.",
                      "defaultValue": "docker"
                    },
                    "STORAGE_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 API endpoint for the bucket.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "MAILER_SENDER_EMAIL": {
                      "isOptional": false,
                      "description": "From address on outgoing mail. Use a domain your SMTP provider can send for.",
                      "defaultValue": "Chatwoot <no-reply@example.com>"
                    },
                    "RAILS_LOG_TO_STDOUT": {
                      "isOptional": false,
                      "description": "Send logs to Railway instead of a file inside the container.",
                      "defaultValue": "true"
                    },
                    "SIDEKIQ_CONCURRENCY": {
                      "isOptional": false,
                      "description": "Jobs run in parallel per replica, and the size of this service's Postgres pool.",
                      "defaultValue": "10"
                    },
                    "SMTP_AUTHENTICATION": {
                      "isOptional": true,
                      "description": "SMTP auth mechanism: plain, login or cram_md5.",
                      "defaultValue": "plain"
                    },
                    "STORAGE_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Bucket holding uploads, avatars and generated exports.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "ENABLE_ACCOUNT_SIGNUP": {
                      "isOptional": false,
                      "description": "Public sign-ups: true, false, or api_only. The first admin is created by the installer regardless.",
                      "defaultValue": "false"
                    },
                    "STORAGE_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Access key id for the bucket's S3 API.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "ACTIVE_STORAGE_SERVICE": {
                      "isOptional": false,
                      "description": "Active Storage backend. s3_compatible points Chatwoot at the Railway bucket.",
                      "defaultValue": "s3_compatible"
                    },
                    "STORAGE_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Railway buckets address objects by path, not by subdomain.",
                      "defaultValue": "true"
                    },
                    "SMTP_ENABLE_STARTTLS_AUTO": {
                      "isOptional": true,
                      "description": "Upgrade the SMTP connection to TLS when the server offers it.",
                      "defaultValue": "true"
                    },
                    "STORAGE_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Secret key for the bucket's S3 API.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY": {
                      "isOptional": false,
                      "description": "Must match Rails, or encrypted columns are unreadable here.",
                      "defaultValue": "${{Rails.ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY": {
                      "isOptional": false,
                      "description": "Must match Rails.",
                      "defaultValue": "${{Rails.ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT": {
                      "isOptional": false,
                      "description": "Must match Rails.",
                      "defaultValue": "${{Rails.ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT}}"
                    }
                  }
                },
                "8a03cc9c-7350-451a-a182-fdedb2ab56e4": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "Postgres",
                  "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 the 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 the Data panel.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when the image starts.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Connection string used by Chatwoot over the private network.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to the Postgres database.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the Postgres user.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allows Postgres to shut down cleanly.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "8a03cc9c-7350-451a-a182-fdedb2ab56e4": {
                      "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."
                  }
                },
                "97f5b3a9-f2e6-4728-81e3-cb3fae04c53c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/chatwoot.svg",
                  "name": "Rails",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -f tmp/pids/server.pid; bundle exec rails db:chatwoot_prepare && exec bundle exec rails s -p $PORT -b 0.0.0.0\"",
                    "healthcheckPath": "/api",
                    "healthcheckTimeout": 900
                  },
                  "source": {
                    "image": "chatwoot/chatwoot:v4.16.2-ce"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Puma binds. Must match the healthcheck probe.",
                      "defaultValue": "3000"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Node environment. Keep as production.",
                      "defaultValue": "production"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Rails log level: debug, info, warn or error.",
                      "defaultValue": "info"
                    },
                    "RAILS_ENV": {
                      "isOptional": false,
                      "description": "Rails environment. Keep as production.",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis backing Sidekiq's queues and Chatwoot's caches.",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "SMTP_PORT": {
                      "isOptional": true,
                      "description": "SMTP port.",
                      "defaultValue": "587"
                    },
                    "SMTP_DOMAIN": {
                      "isOptional": true,
                      "description": "HELO domain presented to the SMTP server.",
                      "defaultValue": ""
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string over the private network.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Public URL of this install. Used in emails, widget snippets and OAuth callbacks.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_ADDRESS": {
                      "isOptional": true,
                      "description": "SMTP host. Leave empty to disable outgoing email.",
                      "defaultValue": ""
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password.",
                      "defaultValue": ""
                    },
                    "SMTP_USERNAME": {
                      "isOptional": true,
                      "description": "SMTP username.",
                      "defaultValue": ""
                    },
                    "DEFAULT_LOCALE": {
                      "isOptional": false,
                      "description": "Language new accounts and signed-out pages default to.",
                      "defaultValue": "en"
                    },
                    "STORAGE_REGION": {
                      "isOptional": false,
                      "description": "Region of the storage bucket.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Generated key signing sessions and cookies. Shared with Sidekiq.",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "INSTALLATION_ENV": {
                      "isOptional": false,
                      "description": "Tells Chatwoot it is running from the Docker image.",
                      "defaultValue": "docker"
                    },
                    "STORAGE_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 API endpoint for the bucket.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "RAILS_MAX_THREADS": {
                      "isOptional": false,
                      "description": "Puma threads, and the size of this service's Postgres pool.",
                      "defaultValue": "5"
                    },
                    "MAILER_SENDER_EMAIL": {
                      "isOptional": false,
                      "description": "From address on outgoing mail. Use a domain your SMTP provider can send for.",
                      "defaultValue": "Chatwoot <no-reply@example.com>"
                    },
                    "RAILS_LOG_TO_STDOUT": {
                      "isOptional": false,
                      "description": "Send logs to Railway instead of a file inside the container.",
                      "defaultValue": "true"
                    },
                    "SMTP_AUTHENTICATION": {
                      "isOptional": true,
                      "description": "SMTP auth mechanism: plain, login or cram_md5.",
                      "defaultValue": "plain"
                    },
                    "STORAGE_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Bucket holding uploads, avatars and generated exports.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "ENABLE_ACCOUNT_SIGNUP": {
                      "isOptional": false,
                      "description": "Public sign-ups: true, false, or api_only. The first admin is created by the installer regardless.",
                      "defaultValue": "false"
                    },
                    "STORAGE_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Access key id for the bucket's S3 API.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "ACTIVE_STORAGE_SERVICE": {
                      "isOptional": false,
                      "description": "Active Storage backend. s3_compatible points Chatwoot at the Railway bucket.",
                      "defaultValue": "s3_compatible"
                    },
                    "STORAGE_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Railway buckets address objects by path, not by subdomain.",
                      "defaultValue": "true"
                    },
                    "SMTP_ENABLE_STARTTLS_AUTO": {
                      "isOptional": true,
                      "description": "Upgrade the SMTP connection to TLS when the server offers it.",
                      "defaultValue": "true"
                    },
                    "STORAGE_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Secret key for the bucket's S3 API.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY": {
                      "isOptional": false,
                      "description": "Generated key encrypting sensitive columns, including 2FA secrets. Shared with Sidekiq.",
                      "defaultValue": "{{ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY": {
                      "isOptional": false,
                      "description": "Generated key for encrypted columns that must stay queryable. Shared with Sidekiq.",
                      "defaultValue": "{{ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT": {
                      "isOptional": false,
                      "description": "Generated salt for encryption key derivation. Shared with Sidekiq.",
                      "defaultValue": "{{ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 3000
                      }
                    }
                  }
                },
                "ff62dbab-cc51-4a0a-8013-1ee68caba02e": {
                  "icon": "https://devicons.railway.com/i/redis.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,
                      "description": "Railway private domain name for Redis.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Redis.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default Redis user.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for Redis over the private network.",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis, used by the Data panel.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password protecting Redis.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "ff62dbab-cc51-4a0a-8013-1ee68caba02e": {
                      "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": "Rails",
      "method": "GET",
      "path": "/api",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-05T12:18:27.961Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_1f3c40f84f204e3782cc",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 73,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Sidekiq"
  }
}
