{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5fb45720-a902-41ce-80a9-41567bf98536",
    "slug": "chatwoot",
    "name": "Chatwoot",
    "description": "A customer communication platform",
    "url": "https://railway.com/deploy/chatwoot",
    "upstream": {
      "image": "ghcr.io/railwayapp-templates/chatwoot:Community"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "pgvector/pgvector:pg16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "Chatwoot",
      "source": {
        "image": "ghcr.io/railwayapp-templates/chatwoot:Community"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/storage",
      "http": true
    },
    {
      "name": "Valkey",
      "source": {
        "image": "valkey/valkey:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "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 database.",
      "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": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public URL to connect to Postgres database, used by the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PGHOST",
      "service": "Chatwoot",
      "description": "Postgres host used for connection test during deployment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "Chatwoot",
      "description": "Postgres port used for connection test during deployment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NODE_ENV",
      "service": "Chatwoot",
      "description": "Run in production mode",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "RAILS_ENV",
      "service": "Chatwoot",
      "description": "Run in production mode",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "Chatwoot",
      "description": "The Redis database Chatwoot will connect to",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "Chatwoot",
      "description": "The Postgres database Chatwoot will connect to",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRONTEND_URL",
      "service": "Chatwoot",
      "description": "Frontend URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DEFAULT_LOCALE",
      "service": "Chatwoot",
      "description": "The Default locale",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "Chatwoot",
      "description": "Super secret key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INSTALLATION_ENV",
      "service": "Chatwoot",
      "description": "Let Chatwoot know its running in Docker",
      "secret": false,
      "strategy": "default",
      "default": "docker"
    },
    {
      "key": "ACTIVE_STORAGE_SERVICE",
      "service": "Chatwoot",
      "description": "Default storage type (uses volumes)",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "VALKEY_URL",
      "service": "Valkey",
      "description": "Private database URL",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "VALKEY_HOST",
      "service": "Valkey",
      "description": "Private hostname",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "VALKEY_PORT",
      "service": "Valkey",
      "description": "Private port",
      "secret": true,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "VALKEY_USER",
      "service": "Valkey",
      "description": "Default username",
      "secret": true,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "VALKEY_PASSWORD",
      "service": "Valkey",
      "description": "Authentication password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "VALKEY_PUBLIC_URL",
      "service": "Valkey",
      "description": "Public database URL",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "VALKEY_PUBLIC_HOST",
      "service": "Valkey",
      "description": "Public hostname",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "VALKEY_PUBLIC_PORT",
      "service": "Valkey",
      "description": "Public port",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chatwoot"
      }
    },
    "cli": "railway deploy --template chatwoot",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5fb45720-a902-41ce-80a9-41567bf98536",
            "serializedConfig": {
              "services": {
                "0ce8345f-f73e-4c22-96f4-264eafeb858e": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "image": "pgvector/pgvector: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 database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public URL to connect to Postgres database, used by the Data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "0ce8345f-f73e-4c22-96f4-264eafeb858e": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "347fe7e0-60b7-4b8a-b503-8abc2df3b589": {
                  "icon": "https://i.imgur.com/2kEnzGv.png",
                  "name": "Chatwoot",
                  "build": {},
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": "/api"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/chatwoot:Community"
                  },
                  "variables": {
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Postgres host used for connection test during deployment",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Postgres port used for connection test during deployment",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Run in production mode",
                      "defaultValue": "production"
                    },
                    "RAILS_ENV": {
                      "isOptional": false,
                      "description": "Run in production mode",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "The Redis database Chatwoot will connect to",
                      "defaultValue": "${{Valkey.VALKEY_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "The Postgres database Chatwoot will connect to",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Frontend URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DEFAULT_LOCALE": {
                      "isOptional": false,
                      "description": "The Default locale",
                      "defaultValue": "en"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Super secret key",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "INSTALLATION_ENV": {
                      "isOptional": false,
                      "description": "Let Chatwoot know its running in Docker",
                      "defaultValue": "docker"
                    },
                    "ACTIVE_STORAGE_SERVICE": {
                      "isOptional": false,
                      "description": "Default storage type (uses volumes)",
                      "defaultValue": "local"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "347fe7e0-60b7-4b8a-b503-8abc2df3b589": {
                      "mountPath": "/app/storage"
                    }
                  }
                },
                "dc0a3ff8-ec6f-4ac9-b6c1-f09c1cee57d4": {
                  "icon": "https://res.cloudinary.com/h5kvzw/image/upload/v1713278076/Valkey-logo_yrnlsx.svg",
                  "name": "Valkey",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec docker-entrypoint.sh valkey-server --port ${VALKEY_PORT} --requirepass ${VALKEY_PASSWORD}\""
                  },
                  "source": {
                    "image": "valkey/valkey:latest"
                  },
                  "variables": {
                    "VALKEY_URL": {
                      "description": "Private database URL",
                      "defaultValue": "redis://${{VALKEY_USER}}:${{VALKEY_PASSWORD}}@${{VALKEY_HOST}}:${{VALKEY_PORT}}"
                    },
                    "VALKEY_HOST": {
                      "description": "Private hostname",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "VALKEY_PORT": {
                      "description": "Private port",
                      "defaultValue": "6379"
                    },
                    "VALKEY_USER": {
                      "description": "Default username",
                      "defaultValue": "default"
                    },
                    "VALKEY_PASSWORD": {
                      "description": "Authentication password",
                      "defaultValue": "{{VALKEY_PASSWORD}}"
                    },
                    "VALKEY_PUBLIC_URL": {
                      "description": "Public database URL",
                      "defaultValue": "redis://${{VALKEY_USER}}:${{VALKEY_PASSWORD}}@${{VALKEY_PUBLIC_HOST}}:${{VALKEY_PUBLIC_PORT}}"
                    },
                    "VALKEY_PUBLIC_HOST": {
                      "description": "Public hostname",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "VALKEY_PUBLIC_PORT": {
                      "description": "Public port",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    }
                  },
                  "volumeMounts": {
                    "dc0a3ff8-ec6f-4ac9-b6c1-f09c1cee57d4": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Chatwoot",
      "method": "GET",
      "path": "/api",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T09:36:54.002Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_692849fec67d4b5db5f1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 172,
    "typical_build_seconds": 0,
    "typical_start_seconds": 52,
    "slowest_service": "Chatwoot"
  }
}
