# Self-host Chatwoot

> An open-source customer support platform for live chat, email, and social messaging.

- Page: https://levelrail.com/templates/chatwoot/
- JSON: https://levelrail.com/templates/chatwoot.json
- Category: Communication
- Licence: MIT (Permissive license)
- Source: https://github.com/chatwoot/chatwoot
- Upstream docs: https://www.chatwoot.com/docs/self-hosted/

## Requirements
- Memory: about 1.5 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: v4.6.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| chatwoot | chatwoot/chatwoot | v4.6.0 | 3000 | chatwoot_data -> /app/storage |
| db | postgres | 16-alpine | none | chatwoot_db_data -> /var/lib/postgresql/data |
| redis | redis | 7-alpine | none | chatwoot_redis_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| chatwoot | FRONTEND_URL | preset |
| chatwoot | POSTGRES_DATABASE | preset |
| chatwoot | POSTGRES_HOST | preset |
| chatwoot | POSTGRES_PASSWORD | generated |
| chatwoot | POSTGRES_USERNAME | generated |
| chatwoot | RAILS_ENV | preset |
| chatwoot | REDIS_URL | preset |
| chatwoot | SECRET_KEY_BASE | generated |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | generated |

## Deploy

### CLI

```bash
levelrail-cli templates deploy chatwoot --name my-chatwoot
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/chatwoot/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Chatwoot on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id chatwoot for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image chatwoot/chatwoot:v4.6.0, postgres:16-alpine, redis:7-alpine is what you deploy there.

Self-host Chatwoot, Chatwoot docker compose file, deploy Chatwoot on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
