{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0c92f563-9ed9-4f57-9c9b-73d0075fdfc6",
    "slug": "chatwoot-3",
    "name": "Chatwoot",
    "description": "Open-source customer support platform: alternative to Intercom and Zendesk.",
    "url": "https://railway.com/deploy/chatwoot-3",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/chatwoot-railway"
    }
  },
  "services": [
    {
      "name": "postgres",
      "source": {
        "repo": "https://github.com/nomideusz/chatwoot-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "repo": "https://github.com/nomideusz/chatwoot-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "web",
      "source": {
        "repo": "https://github.com/nomideusz/chatwoot-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "worker",
      "source": {
        "repo": "https://github.com/nomideusz/chatwoot-railway"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Auto-generated database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Auto-generated Redis password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "web",
      "description": "Rails listen port. Must stay 3000 — Railway would otherwise inject 8080.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "REDIS_URL",
      "service": "web",
      "description": "Redis URI for Sidekiq and ActionCable. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FRONTEND_URL",
      "service": "web",
      "description": "Public URL of this Chatwoot instance. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "web",
      "description": "Postgres private hostname. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "web",
      "description": "Redis password, shared from the redis service. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "web",
      "description": "Rails master secret. Must match on web and worker (worker references this value).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "STORAGE_ENDPOINT",
      "service": "web",
      "description": "Bundled Railway bucket endpoint URL. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "web",
      "description": "Postgres password, shared from the postgres service. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_BUCKET_NAME",
      "service": "web",
      "description": "Bundled Railway bucket name. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_ACCESS_KEY_ID",
      "service": "web",
      "description": "Bundled Railway bucket access key. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_SECRET_ACCESS_KEY",
      "service": "web",
      "description": "Bundled Railway bucket secret key. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_URL",
      "service": "worker",
      "description": "Redis URI for Sidekiq and ActionCable. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FRONTEND_URL",
      "service": "worker",
      "description": "Public URL of this Chatwoot instance. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "worker",
      "description": "Postgres private hostname. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "worker",
      "description": "Redis password, shared from the redis service. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "worker",
      "description": "Rails master secret. Must match on web and worker (worker references this value).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_ENDPOINT",
      "service": "worker",
      "description": "Bundled Railway bucket endpoint URL. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "worker",
      "description": "Postgres password, shared from the postgres service. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_BUCKET_NAME",
      "service": "worker",
      "description": "Bundled Railway bucket name. Wired automatically — don't change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_ACCESS_KEY_ID",
      "service": "worker",
      "description": "Bundled Railway bucket access key. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_SECRET_ACCESS_KEY",
      "service": "worker",
      "description": "Bundled Railway bucket secret key. Wired automatically — don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chatwoot-3"
      }
    },
    "cli": "railway deploy --template chatwoot-3",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0c92f563-9ed9-4f57-9c9b-73d0075fdfc6",
            "serializedConfig": {
              "buckets": {
                "64a0e87d-5900-4a9c-b818-22eb681836eb": {
                  "name": "chatwoot-attachments"
                }
              },
              "services": {
                "142f932b-b2d2-40d6-bef8-28abaca7cc42": {
                  "icon": "https://www.postgresql.org/media/img/about/press/elephant.png",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/chatwoot-railway",
                    "rootDirectory": "/postgres"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "142f932b-b2d2-40d6-bef8-28abaca7cc42": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "4c9eec0d-55b3-4d7b-b986-42c60cf101ab": {
                  "icon": "https://media.ffycdn.net/us/redis/MAQLWqeBKmrz2TFQDmA7.svg?mod=v1/resize=2400",
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/chatwoot-railway",
                    "rootDirectory": "/redis"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated Redis password.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "4c9eec0d-55b3-4d7b-b986-42c60cf101ab": {
                      "mountPath": "/data"
                    }
                  }
                },
                "82f0ed8b-7928-40bf-96e7-88cd31a3ab9b": {
                  "icon": "https://www.chatwoot.com/images/hero/Chatwoot.svg",
                  "name": "web",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api",
                    "preDeployCommand": [
                      "bundle exec rails db:chatwoot_prepare"
                    ],
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/chatwoot-railway",
                    "rootDirectory": "/web"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Rails listen port. Must stay 3000 — Railway would otherwise inject 8080.",
                      "defaultValue": "3000"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis URI for Sidekiq and ActionCable. Wired automatically — don't change.",
                      "defaultValue": "redis://:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Public URL of this Chatwoot instance. Wired automatically — don't change.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "description": "Postgres private hostname. Wired automatically — don't change.",
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password, shared from the redis service. Wired automatically — don't change.",
                      "defaultValue": "${{redis.REDIS_PASSWORD}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Rails master secret. Must match on web and worker (worker references this value).",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "STORAGE_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket endpoint URL. Wired automatically — don't change.",
                      "defaultValue": "${{chatwoot-attachments.ENDPOINT}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password, shared from the postgres service. Wired automatically — don't change.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "STORAGE_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket name. Wired automatically — don't change.",
                      "defaultValue": "${{chatwoot-attachments.BUCKET}}"
                    },
                    "STORAGE_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket access key. Wired automatically — don't change.",
                      "defaultValue": "${{chatwoot-attachments.ACCESS_KEY_ID}}"
                    },
                    "STORAGE_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket secret key. Wired automatically — don't change.",
                      "defaultValue": "${{chatwoot-attachments.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "b757dd22-2a63-4a3d-a5da-f0bb2356c6ff": {
                  "icon": "https://devicons.railway.com/i/railway-light.svg",
                  "name": "worker",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/chatwoot-railway",
                    "rootDirectory": "/worker"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis URI for Sidekiq and ActionCable. Wired automatically — don't change.",
                      "defaultValue": "redis://:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Public URL of this Chatwoot instance. Wired automatically — don't change.",
                      "defaultValue": "https://${{web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "description": "Postgres private hostname. Wired automatically — don't change.",
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password, shared from the redis service. Wired automatically — don't change.",
                      "defaultValue": "${{redis.REDIS_PASSWORD}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Rails master secret. Must match on web and worker (worker references this value).",
                      "defaultValue": "${{web.SECRET_KEY_BASE}}"
                    },
                    "STORAGE_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket endpoint URL. Wired automatically — don't change.",
                      "defaultValue": "${{chatwoot-attachments.ENDPOINT}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password, shared from the postgres service. Wired automatically — don't change.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "STORAGE_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket name. Wired automatically — don't change.",
                      "defaultValue": "${{chatwoot-attachments.BUCKET}}"
                    },
                    "STORAGE_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket access key. Wired automatically — don't change.",
                      "defaultValue": "${{chatwoot-attachments.ACCESS_KEY_ID}}"
                    },
                    "STORAGE_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bundled Railway bucket secret key. Wired automatically — don't change.",
                      "defaultValue": "${{chatwoot-attachments.SECRET_ACCESS_KEY}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "web",
      "method": "GET",
      "path": "/api",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T07:18:01.128Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_721c1f7354494ae190ef",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 170,
    "typical_build_seconds": 41,
    "typical_start_seconds": 20,
    "slowest_service": "worker"
  }
}
