chatwoot Ansible role https://www.chatwoot.com/
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-21 22:21:26 +00:00
.forgejo/workflows feat: initial version 2026-10-22 00:19:23 +02:00
defaults feat: initial version 2026-10-22 00:19:23 +02:00
meta feat: initial version 2026-10-22 00:19:23 +02:00
tasks feat: initial version 2026-10-22 00:19:23 +02:00
templates feat: initial version 2026-10-22 00:19:23 +02:00
CHANGELOG.md feat: initial version 2026-10-22 00:19:23 +02:00
README.md Prettified Code! 2026-10-21 22:21:26 +00:00

Chatwoot

Deploys Chatwoot — an open-source customer support platform (live chat widget, email inbox, help center) — via Docker Compose: rails (web), sidekiq (jobs), PostgreSQL with pgvector, and Redis.

Requirements

  • Docker
  • community.docker Ansible collection (>=5.2.0)
  • Traefik with a traefik_web network and a matching certresolver (see the traefik role)

Variables

Variable Default Description
chatwoot_instance chatwoot Unique instance name. Used as Compose project name and container names.
chatwoot_data_path /data/chatwoot Host path for persistent data (PostgreSQL, Redis, attachments).
chatwoot_docker_path /docker/chatwoot Host path for the Compose and .env files.
chatwoot_image chatwoot/chatwoot Chatwoot image.
chatwoot_version v4.15.1 Chatwoot image tag. Plain tags are the enterprise build, <version>-ce the community build.
chatwoot_pg_image pgvector/pgvector PostgreSQL image (Chatwoot needs pgvector).
chatwoot_pg_version 0.8.1-pg16 PostgreSQL image tag.
chatwoot_redis_version alpine Redis image tag.
chatwoot_domain ~ Required. Dashboard/widget domain (FRONTEND_URL), routed by Traefik.
chatwoot_helpcenter_domain ~ Optional help center domain (HELPCENTER_URL), routed to the same container.
chatwoot_traefik_certresolver default Traefik certificate resolver.
chatwoot_port ~ When set, also exposes Chatwoot on this host port (container port 3000).
chatwoot_pg_user postgres PostgreSQL superuser Chatwoot connects as.
chatwoot_pg_pass ~ Required. PostgreSQL password. Generate with: openssl rand -hex 32
chatwoot_pg_database chatwoot_production Database name.
chatwoot_secret_key_base ~ Required, alphanumeric, permanent. Generate with: openssl rand -hex 64
chatwoot_default_locale en Default language for new accounts and public pages.
chatwoot_enable_account_signup false Public signup: true, false or api_only.
chatwoot_smtp ~ Outgoing mail (host, username, password, from, optional port, domain, authentication, starttls).
chatwoot_inbound_email_domain ~ MAILER_INBOUND_EMAIL_DOMAIN for reply-to addresses (conversation continuity).
chatwoot_extra_env {} Dict of extra environment variables for rails and sidekiq.
chatwoot_uninstall false Stops and removes containers and the compose directory.
chatwoot_purge false Also removes the data directory (database, Redis, attachments). Irreversible.

Usage

chatwoot_domain: support.example.com
chatwoot_helpcenter_domain: help.example.com
chatwoot_pg_pass: "{{ vault_chatwoot_pg_pass }}"
chatwoot_secret_key_base: "{{ vault_chatwoot_secret_key_base }}"
chatwoot_smtp:
  host: mail.example.com
  username: support@example.com
  password: "{{ vault_chatwoot_smtp_pass }}"
  from: "Support <support@example.com>"

On a fresh database, create the first user with docker exec -it chatwoot bundle exec rails c or open the dashboard once while signup is still enabled.

Uninstall

chatwoot_uninstall: true

Add chatwoot_purge: true to also delete the database, Redis data and attachments.

Notes

  • Database setup and migrations. Every deploy runs rails db:chatwoot_prepare in a one-off rails container before starting the stack: it creates and loads the database on the first run and runs pending migrations after an image bump.
  • chatwoot_secret_key_base is permanent. It signs sessions and encrypted cookies; changing it logs everyone out.
  • Inbox credentials live in the database. IMAP/SMTP settings of email inboxes, widget settings, agents and the help center are configured in the dashboard and stored in PostgreSQL. When moving an instance, stop the old one first: two instances polling the same IMAP mailbox create duplicate conversations.
  • PostgreSQL and Redis are only reachable on the internal Docker network — no host ports are published. Redis runs without a password for that reason.