Self-host Chatwoot with Docker
An open-source customer support platform for live chat, email, and social messaging.
This page describes the Levelrail template for Chatwoot (Communication). It deploys the services below as one Docker Compose app on your own server.
Project site: https://www.chatwoot.com/docs/self-hosted/.Recommended memory: about 1536 MiB.
Services, ports and volumes
| Service | Image | Container 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 variables
| Service | Variable | Value |
|---|---|---|
chatwoot | FRONTEND_URL | Preset in the template |
chatwoot | POSTGRES_DATABASE | Preset in the template |
chatwoot | POSTGRES_HOST | Preset in the template |
chatwoot | POSTGRES_PASSWORD | Generated at deploy |
chatwoot | POSTGRES_USERNAME | Generated at deploy |
chatwoot | RAILS_ENV | Preset in the template |
chatwoot | REDIS_URL | Preset in the template |
chatwoot | SECRET_KEY_BASE | Generated at deploy |
db | POSTGRES_DB | Preset in the template |
db | POSTGRES_PASSWORD | Generated at deploy |
db | POSTGRES_USER | Generated at deploy |
Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.
Deploy Chatwoot with Levelrail
In the dashboard, open Apps, choose New app, then Browse templates, and select Chatwoot. Review the Compose body and deploy.
With the CLI:
levelrail-cli templates deploy chatwoot --name my-chatwootSee Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.
More Communication templates
All templates are listed in the self-host gallery.