{
  "manifest_version": "1.0.0",
  "template": {
    "id": "dd4defb1-7f56-4d1e-9689-03fb6e3f45bf",
    "slug": "chatwoot-self-hosted-intercom-alternativ",
    "name": "Chatwoot (Self-Hosted Intercom Alternative)",
    "description": "Self-hosted Intercom alternative — live chat, shared inbox & helpdesk",
    "url": "https://railway.com/deploy/chatwoot-self-hosted-intercom-alternativ",
    "upstream": {
      "image": "chatwoot/chatwoot:v4.16.2"
    }
  },
  "services": [
    {
      "name": "cozy-beauty",
      "source": {
        "image": "chatwoot/chatwoot:v4.16.2"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "image": "redis:7-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "pgvector",
      "source": {
        "image": "pgvector/pgvector:pg16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "chatwoot",
      "source": {
        "image": "chatwoot/chatwoot:v4.16.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "NODE_ENV",
      "service": "cozy-beauty",
      "description": "Node environment. Leave as production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "FORCE_SSL",
      "service": "cozy-beauty",
      "description": "Force HTTPS. Kept in sync with the web service.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILS_ENV",
      "service": "cozy-beauty",
      "description": "Rails environment. Leave as production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "cozy-beauty",
      "description": "Redis connection string over the private network. Sidekiq pulls jobs from here.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FRONTEND_URL",
      "service": "cozy-beauty",
      "description": "Public URL; references the web (chatwoot) service's domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "cozy-beauty",
      "description": "Postgres host over the private network. References the pgvector service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "cozy-beauty",
      "description": "Must match the web service's secret so sessions validate. References the chatwoot service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INSTALLATION_ENV",
      "service": "cozy-beauty",
      "description": "Tells Chatwoot it runs in Docker. Leave as docker.",
      "secret": false,
      "strategy": "default",
      "default": "docker"
    },
    {
      "key": "POSTGRES_DATABASE",
      "service": "cozy-beauty",
      "description": "Database name, matching the pgvector service.",
      "secret": false,
      "strategy": "default",
      "default": "chatwoot"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "cozy-beauty",
      "description": "Postgres password. References the pgvector service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USERNAME",
      "service": "cozy-beauty",
      "description": "Postgres user, matching the pgvector service.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "RAILS_LOG_TO_STDOUT",
      "service": "cozy-beauty",
      "description": "Send logs to stdout so they show in Railway's log viewer.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILS_SERVE_STATIC_FILES",
      "service": "cozy-beauty",
      "description": "Kept in sync with the web service. Leave as true.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PGDATA",
      "service": "pgvector",
      "description": "Postgres data directory on the mounted volume. The /pgdata subdirectory avoids the lost+found init error.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "pgvector",
      "description": "Name of the database Chatwoot uses. Created and migrated automatically by the web service's pre-deploy step.",
      "secret": false,
      "strategy": "default",
      "default": "chatwoot"
    },
    {
      "key": "POSTGRES_USER",
      "service": "pgvector",
      "description": "Postgres superuser that Chatwoot connects as.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "pgvector",
      "description": "Auto-generated database password. Alphanumeric to stay safe inside connection strings.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "chatwoot",
      "description": "Port the Rails server listens on. Must match the public domain's target port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NODE_ENV",
      "service": "chatwoot",
      "description": "Node environment for asset handling. Leave as production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "FORCE_SSL",
      "service": "chatwoot",
      "description": "Force HTTPS. Recommended since Railway serves over TLS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILS_ENV",
      "service": "chatwoot",
      "description": "Rails environment. Leave as production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "chatwoot",
      "description": "Redis connection string over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FRONTEND_URL",
      "service": "chatwoot",
      "description": "Public URL of your Chatwoot instance. Auto-filled from the generated domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "chatwoot",
      "description": "Postgres host over Railway's private network. References the pgvector service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "chatwoot",
      "description": "Rails secret that encrypts sessions and cookies. Auto-generated; the worker references this same value so keep it stable.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INSTALLATION_ENV",
      "service": "chatwoot",
      "description": "Tells Chatwoot it runs in Docker. Leave as docker.",
      "secret": false,
      "strategy": "default",
      "default": "docker"
    },
    {
      "key": "POSTGRES_DATABASE",
      "service": "chatwoot",
      "description": "Database name, matching the pgvector service.",
      "secret": false,
      "strategy": "default",
      "default": "chatwoot"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "chatwoot",
      "description": "Postgres password. References the pgvector service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USERNAME",
      "service": "chatwoot",
      "description": "Postgres user, matching the pgvector service.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "RAILS_LOG_TO_STDOUT",
      "service": "chatwoot",
      "description": "Send logs to stdout so they show in Railway's log viewer.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILS_SERVE_STATIC_FILES",
      "service": "chatwoot",
      "description": "Let Rails serve compiled assets. Required on Railway.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chatwoot-self-hosted-intercom-alternativ"
      }
    },
    "cli": "railway deploy --template chatwoot-self-hosted-intercom-alternativ",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "dd4defb1-7f56-4d1e-9689-03fb6e3f45bf",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0d37fa61-0763-41c6-a5d9-c3025e8aedd5": {
                  "icon": null,
                  "name": "cozy-beauty",
                  "deploy": {
                    "startCommand": "bundle exec sidekiq -C config/sidekiq.yml",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chatwoot/chatwoot:v4.16.2"
                  },
                  "variables": {
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Node environment. Leave as production.",
                      "defaultValue": "production"
                    },
                    "FORCE_SSL": {
                      "isOptional": false,
                      "description": "Force HTTPS. Kept in sync with the web service.",
                      "defaultValue": "true"
                    },
                    "RAILS_ENV": {
                      "isOptional": false,
                      "description": "Rails environment. Leave as production.",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis connection string over the private network. Sidekiq pulls jobs from here.",
                      "defaultValue": "redis://${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Public URL; references the web (chatwoot) service's domain.",
                      "defaultValue": "https://${{chatwoot.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "description": "Postgres host over the private network. References the pgvector service.",
                      "defaultValue": "${{pgvector.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Must match the web service's secret so sessions validate. References the chatwoot service.",
                      "defaultValue": "${{chatwoot.SECRET_KEY_BASE}}"
                    },
                    "INSTALLATION_ENV": {
                      "isOptional": false,
                      "description": "Tells Chatwoot it runs in Docker. Leave as docker.",
                      "defaultValue": "docker"
                    },
                    "POSTGRES_DATABASE": {
                      "isOptional": false,
                      "description": "Database name, matching the pgvector service.",
                      "defaultValue": "chatwoot"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password. References the pgvector service.",
                      "defaultValue": "${{pgvector.POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_USERNAME": {
                      "isOptional": false,
                      "description": "Postgres user, matching the pgvector service.",
                      "defaultValue": "postgres"
                    },
                    "RAILS_LOG_TO_STDOUT": {
                      "isOptional": false,
                      "description": "Send logs to stdout so they show in Railway's log viewer.",
                      "defaultValue": "true"
                    },
                    "RAILS_SERVE_STATIC_FILES": {
                      "isOptional": false,
                      "description": "Kept in sync with the web service. Leave as true.",
                      "defaultValue": "true"
                    }
                  }
                },
                "5a29ba86-e492-479b-a8fe-6040a484344f": {
                  "icon": null,
                  "name": "redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7-alpine"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "5a29ba86-e492-479b-a8fe-6040a484344f": {
                      "mountPath": "/data"
                    }
                  }
                },
                "86a1378e-4ad1-49a4-84e8-a04fdd9fe263": {
                  "icon": null,
                  "name": "pgvector",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:pg16"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory on the mounted volume. The /pgdata subdirectory avoids the lost+found init error.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Name of the database Chatwoot uses. Created and migrated automatically by the web service's pre-deploy step.",
                      "defaultValue": "chatwoot"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres superuser that Chatwoot connects as.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password. Alphanumeric to stay safe inside connection strings.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "86a1378e-4ad1-49a4-84e8-a04fdd9fe263": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "d244228e-1ed7-4ab0-a642-7313002c6702": {
                  "icon": null,
                  "name": "chatwoot",
                  "deploy": {
                    "startCommand": "bundle exec rails s -p 3000 -b 0.0.0.0",
                    "healthcheckPath": null,
                    "preDeployCommand": [
                      "bundle exec rails db:chatwoot_prepare"
                    ],
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chatwoot/chatwoot:v4.16.2"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the Rails server listens on. Must match the public domain's target port.",
                      "defaultValue": "3000"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Node environment for asset handling. Leave as production.",
                      "defaultValue": "production"
                    },
                    "FORCE_SSL": {
                      "isOptional": false,
                      "description": "Force HTTPS. Recommended since Railway serves over TLS.",
                      "defaultValue": "true"
                    },
                    "RAILS_ENV": {
                      "isOptional": false,
                      "description": "Rails environment. Leave as production.",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis connection string over the private network.",
                      "defaultValue": "redis://${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Public URL of your Chatwoot instance. Auto-filled from the generated domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "description": "Postgres host over Railway's private network. References the pgvector service.",
                      "defaultValue": "${{pgvector.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Rails secret that encrypts sessions and cookies. Auto-generated; the worker references this same value so keep it stable.",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "INSTALLATION_ENV": {
                      "isOptional": false,
                      "description": "Tells Chatwoot it runs in Docker. Leave as docker.",
                      "defaultValue": "docker"
                    },
                    "POSTGRES_DATABASE": {
                      "isOptional": false,
                      "description": "Database name, matching the pgvector service.",
                      "defaultValue": "chatwoot"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password. References the pgvector service.",
                      "defaultValue": "${{pgvector.POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_USERNAME": {
                      "isOptional": false,
                      "description": "Postgres user, matching the pgvector service.",
                      "defaultValue": "postgres"
                    },
                    "RAILS_LOG_TO_STDOUT": {
                      "isOptional": false,
                      "description": "Send logs to stdout so they show in Railway's log viewer.",
                      "defaultValue": "true"
                    },
                    "RAILS_SERVE_STATIC_FILES": {
                      "isOptional": false,
                      "description": "Let Rails serve compiled assets. Required on Railway.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "d244228e-1ed7-4ab0-a642-7313002c6702": {
                      "mountPath": "/app/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-09T06:02:34.665Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T06:50:31.112Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_39df45a02aea4b4f958b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 123,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "cozy-beauty"
  }
}
