{
  "manifest_version": "1.0.0",
  "template": {
    "id": "34484ef6-e499-4350-815e-a53a91394b69",
    "slug": "chatwoot-4",
    "name": "Chatwoot",
    "description": "Open-source customer support: live chat, shared inbox, automations",
    "url": "https://railway.com/deploy/chatwoot-4",
    "upstream": {
      "repo_url": "https://github.com/mc9max/chatwoot"
    }
  },
  "services": [
    {
      "name": "chatwoot-worker",
      "source": {
        "repo": "https://github.com/mc9max/chatwoot"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "repo": "https://github.com/mc9max/chatwoot"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "chatwoot",
      "source": {
        "repo": "https://github.com/mc9max/chatwoot"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/storage",
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "repo": "https://github.com/mc9max/chatwoot"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDIS_URL",
      "service": "chatwoot-worker",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FRONTEND_URL",
      "service": "chatwoot-worker",
      "description": "Provide a value for FRONTEND_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "chatwoot-worker",
      "description": "Provide a value for POSTGRES_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "chatwoot-worker",
      "description": "Provide a value for SECRET_KEY_BASE.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "chatwoot-worker",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_URL",
      "service": "chatwoot",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FRONTEND_URL",
      "service": "chatwoot",
      "description": "Provide a value for FRONTEND_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "chatwoot",
      "description": "Provide a value for POSTGRES_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "chatwoot",
      "description": "Provide a value for SECRET_KEY_BASE.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "chatwoot",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chatwoot-4"
      }
    },
    "cli": "railway deploy --template chatwoot-4",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "34484ef6-e499-4350-815e-a53a91394b69",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4b877cf8-d430-488a-a27b-4550cd7f3df0": {
                  "icon": null,
                  "name": "chatwoot-worker",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/mc9max/chatwoot",
                    "rootDirectory": "worker"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{chatwoot.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "defaultValue": "${{chatwoot.SECRET_KEY_BASE}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    }
                  }
                },
                "84d9030e-47e9-41b5-9386-e4f0c7570b55": {
                  "icon": null,
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/mc9max/chatwoot",
                    "rootDirectory": "redis"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "84d9030e-47e9-41b5-9386-e4f0c7570b55": {
                      "mountPath": "/data"
                    }
                  }
                },
                "b696223a-80a4-4519-a02c-81590aa9ef2b": {
                  "icon": null,
                  "name": "chatwoot",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/mc9max/chatwoot",
                    "rootDirectory": null
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "b696223a-80a4-4519-a02c-81590aa9ef2b": {
                      "mountPath": "/app/storage"
                    }
                  }
                },
                "b71611e8-58d5-435f-be75-397654162f89": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/mc9max/chatwoot",
                    "rootDirectory": "postgres"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "b71611e8-58d5-435f-be75-397654162f89": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-17T16:14:42.276Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-17T15:02:07.314Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b41e0744cd4944c7ab09",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 138,
    "typical_build_seconds": 101,
    "typical_start_seconds": 20,
    "slowest_service": "chatwoot-worker"
  }
}
