Chatto
Self-hosted team and community chat with built-in voice and video calls
Alternative to: slack, discord, microsoft teams
Chatto is a self-hosted chat application for teams and communities that bundles messaging, voice and video calls, and single sign-on into one deployable package. It ships official container images and runs without heavy external dependencies for straightforward self-hosting. The project is privacy-first and GDPR-focused, aimed at teams who want a fast Slack- or Discord-style chat they fully control.
Chatto Docker Compose example
Self-host Chatto on your own server, homelab, or VPS starting from this Docker Compose example.
It runs Chatto in Docker containers using the official nats:latest, ghcr.io/chattocorp/chatto:latest images, with persistent volumes and automatic restarts preconfigured.
Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.
services:
nats:
image: nats:latest
restart: unless-stopped
# The --auth token must match CHATTO_NATS_CLIENT_TOKEN on the chatto service.
# Generate one with: openssl rand -hex 32
command: ["--config", "/etc/nats/nats-server.conf", "--auth=changeme"]
volumes:
- ./nats-server.conf:/etc/nats/nats-server.conf:ro
- nats_data:/data
chatto:
image: ghcr.io/chattocorp/chatto:latest
restart: unless-stopped
depends_on:
- nats
environment:
# Host user/group IDs the container drops privileges to.
PUID: "1000"
PGID: "1000"
# Public URL where users reach Chatto (scheme + host, no path), e.g. https://chat.example.com.
CHATTO_WEBSERVER_URL: "http://localhost:4000"
# Port the Chatto web server listens on inside the container.
CHATTO_WEBSERVER_PORT: "4000"
# Comma-separated verified email addresses that get owner (admin) access.
# The first-run wizard creates the initial local owner on its own.
CHATTO_OWNERS_EMAILS: ""
# Use the external NATS JetStream service below instead of the embedded one.
CHATTO_NATS_EMBEDDED_ENABLED: "false"
# Address of the NATS service.
CHATTO_NATS_CLIENT_URL: "nats://nats:4222"
# NATS authentication method (token matches the --auth flag on the nats service).
CHATTO_NATS_CLIENT_AUTH_METHOD: "token"
# NATS token. Must match the --auth value of the nats service.
CHATTO_NATS_CLIENT_TOKEN: "changeme"
# Secret for signing browser cookies and CSRF proofs. Must be 32 bytes hex-encoded.
# Replace before going live — generate with: openssl rand -hex 32
CHATTO_WEBSERVER_COOKIE_SIGNING_SECRET: "fb8e5e8e1e881722eb333dff6355658463bd1a2caed5280cc5697bf7b8d1306d"
# Secret for encrypting browser cookies. Must be 32 bytes hex-encoded.
# Replace before going live — generate with: openssl rand -hex 32
CHATTO_WEBSERVER_COOKIE_ENCRYPTION_SECRET: "462fd26928b8226b11c71371ac271c1f9f5f874aee053f7fc2dfb0f58c7e78cd"
# Server-wide secret for bearer tokens, invite links and account flows. Must be 32 bytes hex-encoded.
# Changing it invalidates existing sessions and invites. Generate with: openssl rand -hex 32
CHATTO_CORE_SECRET_KEY: "5959222d6b3007e8c084ac71538f83141d351b0f6c7a0beba9a6d27cc28be5dc"
# Secret for signing asset URLs. Must be 32 bytes hex-encoded.
# Replace before going live — generate with: openssl rand -hex 32
CHATTO_CORE_ASSETS_SIGNING_SECRET: "0d6d2494f80e9dbef698aa7a80867d13c442444c814b134378730da0b35a8b09"
# Log verbosity: debug, info, warn or error.
CHATTO_LOG_LEVEL: "info"
# Log output format: json or text.
CHATTO_LOG_FORMAT: "json"
# Enables the private in-container operator socket used by "chatto operator ..." commands.
CHATTO_OPERATOR_API_ENABLED: "true"
# Path of the operator API socket inside the container.
CHATTO_OPERATOR_API_SOCKET_PATH: "/tmp/chatto/operator.sock"
# Enable SMTP email (needed for email/password registration, verification and password reset).
CHATTO_SMTP_ENABLED: "false"
# SMTP server hostname.
CHATTO_SMTP_HOST: ""
# SMTP port: 587 with mandatory STARTTLS, or 465 with implicit TLS.
CHATTO_SMTP_PORT: "587"
# SMTP TLS policy: mandatory, opportunistic or implicit.
CHATTO_SMTP_TLS: "mandatory"
# SMTP username.
CHATTO_SMTP_USERNAME: ""
# SMTP password.
CHATTO_SMTP_PASSWORD: ""
# Sender address for outgoing emails, e.g. noreply@example.com.
CHATTO_SMTP_FROM: ""
volumes:
nats_data:
Values set to changeme are required — replace them with your own
values before starting Chatto.
Extra files
The Docker Compose configuration above bind-mounts the following file. Save it next to your compose.yml,
keeping the same relative path.
nats-server.conf
jetstream {
store_dir: /data
sync_interval: always
} Prefer a managed setup? WinterFlow installs, configures, and updates Chatto for you using this same Docker Compose configuration.