{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bc200151-ecee-4521-970b-f9862a4862d7",
    "slug": "chatwoot-v4-omnichannel-support-desk",
    "name": "Chatwoot v4 Omnichannel Support Desk",
    "description": "Live chat, email, WhatsApp Cloud API and social inbox with AI assist.",
    "url": "https://railway.com/deploy/chatwoot-v4-omnichannel-support-desk",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/chatwoot-railway"
    }
  },
  "services": [
    {
      "name": "chatwoot-sidekiq",
      "source": {
        "repo": "https://github.com/baranberkay96/chatwoot-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "chatwoot",
      "source": {
        "repo": "https://github.com/baranberkay96/chatwoot-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "pgvector/pgvector:0.8.7-pg16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "LOG_LEVEL",
      "service": "chatwoot-sidekiq",
      "description": "Rails log level.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "REDIS_URL",
      "service": "chatwoot-sidekiq",
      "description": "Redis for Sidekiq queues, Action Cable and caching.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRONTEND_URL",
      "service": "chatwoot-sidekiq",
      "description": "Same value as on chatwoot.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "chatwoot-sidekiq",
      "description": "Postgres (pgvector) host, private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "chatwoot-sidekiq",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "STORAGE_REGION",
      "service": "chatwoot-sidekiq",
      "description": "Bucket region.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "chatwoot-sidekiq",
      "description": "Same value as on chatwoot.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_ENDPOINT",
      "service": "chatwoot-sidekiq",
      "description": "Bucket S3 endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DATABASE",
      "service": "chatwoot-sidekiq",
      "description": "Chatwoot database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "chatwoot-sidekiq",
      "description": "Postgres password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USERNAME",
      "service": "chatwoot-sidekiq",
      "description": "Postgres user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAILER_SENDER_EMAIL",
      "service": "chatwoot-sidekiq",
      "description": "Same value as on chatwoot.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SIDEKIQ_CONCURRENCY",
      "service": "chatwoot-sidekiq",
      "description": "Sidekiq threads per replica (also the DB pool size).",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "STORAGE_BUCKET_NAME",
      "service": "chatwoot-sidekiq",
      "description": "Bucket name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_ACCESS_KEY_ID",
      "service": "chatwoot-sidekiq",
      "description": "Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_STORAGE_SERVICE",
      "service": "chatwoot-sidekiq",
      "description": "Attachments/avatars in the Railway Bucket so web and Sidekiq see the same files.",
      "secret": false,
      "strategy": "default",
      "default": "s3_compatible"
    },
    {
      "key": "STORAGE_FORCE_PATH_STYLE",
      "service": "chatwoot-sidekiq",
      "description": "Railway Buckets use virtual-hosted URLs (set true only for old path-style buckets).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "STORAGE_SECRET_ACCESS_KEY",
      "service": "chatwoot-sidekiq",
      "description": "Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "chatwoot-sidekiq",
      "description": "Time running jobs get to finish on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY",
      "service": "chatwoot-sidekiq",
      "description": "Same value as on chatwoot.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY",
      "service": "chatwoot-sidekiq",
      "description": "Same value as on chatwoot.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT",
      "service": "chatwoot-sidekiq",
      "description": "Same value as on chatwoot.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "chatwoot",
      "description": "Puma port (domain + healthcheck).",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "FORCE_SSL",
      "service": "chatwoot",
      "description": "Railway terminates TLS at its edge; keep false to avoid redirect loops.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LOG_LEVEL",
      "service": "chatwoot",
      "description": "Rails log level.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "REDIS_URL",
      "service": "chatwoot",
      "description": "Redis for Sidekiq queues, Action Cable and caching.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRONTEND_URL",
      "service": "chatwoot",
      "description": "Public URL (links in emails, widget script). Update for a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "chatwoot",
      "description": "Postgres (pgvector) host, private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "chatwoot",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "STORAGE_REGION",
      "service": "chatwoot",
      "description": "Bucket region.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "chatwoot",
      "description": "Rails secret (signed cookies, tokens). Shared with Sidekiq. Never change after first boot.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WEB_CONCURRENCY",
      "service": "chatwoot",
      "description": "Puma worker processes (0 = single process). Raise to 2 for busy installs.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "STORAGE_ENDPOINT",
      "service": "chatwoot",
      "description": "Bucket S3 endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DATABASE",
      "service": "chatwoot",
      "description": "Chatwoot database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "chatwoot",
      "description": "Postgres password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USERNAME",
      "service": "chatwoot",
      "description": "Postgres user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILS_MAX_THREADS",
      "service": "chatwoot",
      "description": "Puma threads per process.",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "MAILER_SENDER_EMAIL",
      "service": "chatwoot",
      "description": "From address for outgoing email (needs SMTP, see docs).",
      "secret": false,
      "strategy": "default",
      "default": "Chatwoot <noreply@example.com>"
    },
    {
      "key": "STORAGE_BUCKET_NAME",
      "service": "chatwoot",
      "description": "Bucket name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENABLE_ACCOUNT_SIGNUP",
      "service": "chatwoot",
      "description": "Public sign-up. Read once on first boot; afterwards change it in Super Admin > App Configs.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "STORAGE_ACCESS_KEY_ID",
      "service": "chatwoot",
      "description": "Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_STORAGE_SERVICE",
      "service": "chatwoot",
      "description": "Attachments/avatars in the Railway Bucket so web and Sidekiq see the same files.",
      "secret": false,
      "strategy": "default",
      "default": "s3_compatible"
    },
    {
      "key": "STORAGE_FORCE_PATH_STYLE",
      "service": "chatwoot",
      "description": "Railway Buckets use virtual-hosted URLs (set true only for old path-style buckets).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "STORAGE_SECRET_ACCESS_KEY",
      "service": "chatwoot",
      "description": "Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY",
      "service": "chatwoot",
      "description": "Active Record encryption key (MFA, encrypted columns). Never change.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY",
      "service": "chatwoot",
      "description": "Active Record deterministic encryption key. Never change.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT",
      "service": "chatwoot",
      "description": "Active Record key derivation salt. Never change.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "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": "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 (private network, no TLS).",
      "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": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chatwoot-v4-omnichannel-support-desk"
      }
    },
    "cli": "railway deploy --template chatwoot-v4-omnichannel-support-desk",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bc200151-ecee-4521-970b-f9862a4862d7",
            "serializedConfig": {
              "buckets": {
                "7410a529-1c50-50b2-88d8-e7e23a0ae766": {
                  "name": "Bucket"
                }
              },
              "services": {
                "3973fc53-6163-5a6d-9cc2-14334184a858": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/chatwoot.svg",
                  "name": "chatwoot-sidekiq",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "startCommand": "/app/railway/sidekiq.sh",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/chatwoot-railway",
                    "branch": "main",
                    "rootDirectory": "/services/chatwoot"
                  },
                  "variables": {
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Rails log level.",
                      "defaultValue": "info"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis for Sidekiq queues, Action Cable and caching.",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Same value as on chatwoot.",
                      "defaultValue": "${{chatwoot.FRONTEND_URL}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "description": "Postgres (pgvector) host, private network.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_PORT": {
                      "isOptional": true,
                      "description": "Postgres port.",
                      "defaultValue": "5432"
                    },
                    "STORAGE_REGION": {
                      "isOptional": false,
                      "description": "Bucket region.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Same value as on chatwoot.",
                      "defaultValue": "${{chatwoot.SECRET_KEY_BASE}}"
                    },
                    "STORAGE_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket S3 endpoint.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "POSTGRES_DATABASE": {
                      "isOptional": false,
                      "description": "Chatwoot database.",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "POSTGRES_USERNAME": {
                      "isOptional": false,
                      "description": "Postgres user.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "MAILER_SENDER_EMAIL": {
                      "isOptional": true,
                      "description": "Same value as on chatwoot.",
                      "defaultValue": "${{chatwoot.MAILER_SENDER_EMAIL}}"
                    },
                    "SIDEKIQ_CONCURRENCY": {
                      "isOptional": true,
                      "description": "Sidekiq threads per replica (also the DB pool size).",
                      "defaultValue": "10"
                    },
                    "STORAGE_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Bucket name.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "STORAGE_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "ACTIVE_STORAGE_SERVICE": {
                      "isOptional": false,
                      "description": "Attachments/avatars in the Railway Bucket so web and Sidekiq see the same files.",
                      "defaultValue": "s3_compatible"
                    },
                    "STORAGE_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted URLs (set true only for old path-style buckets).",
                      "defaultValue": "false"
                    },
                    "STORAGE_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Time running jobs get to finish on redeploy.",
                      "defaultValue": "60"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY": {
                      "isOptional": false,
                      "description": "Same value as on chatwoot.",
                      "defaultValue": "${{chatwoot.ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY": {
                      "isOptional": false,
                      "description": "Same value as on chatwoot.",
                      "defaultValue": "${{chatwoot.ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT": {
                      "isOptional": false,
                      "description": "Same value as on chatwoot.",
                      "defaultValue": "${{chatwoot.ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "473f41c4-ce20-5d63-a63b-1ff053440b68": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/chatwoot.svg",
                  "name": "chatwoot",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "startCommand": "/app/railway/web.sh",
                    "healthcheckPath": "/api",
                    "preDeployCommand": [
                      "/app/railway/predeploy.sh"
                    ],
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/chatwoot-railway",
                    "branch": "main",
                    "rootDirectory": "/services/chatwoot"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Puma port (domain + healthcheck).",
                      "defaultValue": "3000"
                    },
                    "FORCE_SSL": {
                      "isOptional": true,
                      "description": "Railway terminates TLS at its edge; keep false to avoid redirect loops.",
                      "defaultValue": "false"
                    },
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Rails log level.",
                      "defaultValue": "info"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis for Sidekiq queues, Action Cable and caching.",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Public URL (links in emails, widget script). Update for a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "description": "Postgres (pgvector) host, private network.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_PORT": {
                      "isOptional": true,
                      "description": "Postgres port.",
                      "defaultValue": "5432"
                    },
                    "STORAGE_REGION": {
                      "isOptional": false,
                      "description": "Bucket region.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Rails secret (signed cookies, tokens). Shared with Sidekiq. Never change after first boot.",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "WEB_CONCURRENCY": {
                      "isOptional": true,
                      "description": "Puma worker processes (0 = single process). Raise to 2 for busy installs.",
                      "defaultValue": "0"
                    },
                    "STORAGE_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket S3 endpoint.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "POSTGRES_DATABASE": {
                      "isOptional": false,
                      "description": "Chatwoot database.",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password.",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "POSTGRES_USERNAME": {
                      "isOptional": false,
                      "description": "Postgres user.",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "RAILS_MAX_THREADS": {
                      "isOptional": true,
                      "description": "Puma threads per process.",
                      "defaultValue": "5"
                    },
                    "MAILER_SENDER_EMAIL": {
                      "isOptional": true,
                      "description": "From address for outgoing email (needs SMTP, see docs).",
                      "defaultValue": "Chatwoot <noreply@example.com>"
                    },
                    "STORAGE_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Bucket name.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "ENABLE_ACCOUNT_SIGNUP": {
                      "isOptional": true,
                      "description": "Public sign-up. Read once on first boot; afterwards change it in Super Admin > App Configs.",
                      "defaultValue": "false"
                    },
                    "STORAGE_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "ACTIVE_STORAGE_SERVICE": {
                      "isOptional": false,
                      "description": "Attachments/avatars in the Railway Bucket so web and Sidekiq see the same files.",
                      "defaultValue": "s3_compatible"
                    },
                    "CAPTAIN_OPEN_AI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. OpenAI key for Captain AI; copied into Super Admin config on deploy if not set there yet.",
                      "defaultValue": ""
                    },
                    "STORAGE_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted URLs (set true only for old path-style buckets).",
                      "defaultValue": "false"
                    },
                    "STORAGE_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY": {
                      "isOptional": false,
                      "description": "Active Record encryption key (MFA, encrypted columns). Never change.",
                      "defaultValue": "{{ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY": {
                      "isOptional": false,
                      "description": "Active Record deterministic encryption key. Never change.",
                      "defaultValue": "{{ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT": {
                      "isOptional": false,
                      "description": "Active Record key derivation salt. Never change.",
                      "defaultValue": "{{ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "b6844b60-63af-5665-8794-07850552b4ec": {
                  "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\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "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}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "47937e65-6f0f-58fb-835a-9ce06097ad71": {
                      "mountPath": "/data"
                    }
                  }
                },
                "bf70b53d-acf2-5607-8cc7-504d04d982cc": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:0.8.7-pg16"
                  },
                  "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 (private network, no TLS).",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "3c47ed59-aa16-5b35-906e-b88b8f8f3d40": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "chatwoot",
      "method": "GET",
      "path": "/api",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T16:14:40.554Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-11T14:52:58.051Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_bcadc681d36649c9b484",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
