Skip to content

Add ChatterMate template - #3

Merged
Panelica merged 3 commits into
Panelica:mainfrom
chattermate:add-chattermate-template
Nov 20, 2026
Merged

Panelica merged 3 commits into
Panelica:mainfrom
chattermate:add-chattermate-template

Conversation

@chattermate

@chattermate chattermate commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

New template: ChatterMate

ChatterMate is an open-source AI customer support app. The stack is the dashboard (main container), the API, three workers on the backend image (knowledge crawler, ticket investigator, CRM sync), PostgreSQL with pgvector and Redis. It mirrors our docker-compose.prod.yml.

Checklist

  • python3 scripts/validate.py prints OK
  • I deployed this template myself and reached the app's first-run screen
  • min_memory_mb reflects real usage (checked with docker stats)
  • Secrets use "secret": true with an empty default (auto-generated)
  • Data-service ports (db/cache/queue) bind "host_ip": "127.0.0.1" (they publish no ports at all)

Test notes

Deployed with plain Docker the way the README describes the engine (one private network, <slug>-<suffix> names, generated secrets, from_env, named volumes). Healthy in about 20 seconds; the setup page created the organization and admin and the dashboard loaded. A full restart kept the data. Idle memory is about 1.3 GB; crawling a website needs more, so 2048 MB.

Retested on 1.0.32 the same way: signup, sign-in and /users/me work over plain http on the server IP, since the session cookies are only Secure when the API is served over https.

A few things a reviewer might ask about:

  • The app needs a Fernet key for encryption at rest, which a generic random secret isn't. So the template generates ENCRYPTION_KEY_SEED and each backend container derives the key from it at start. It's the same key every time.
  • The images read the database and API hostnames from DB_HOST and BACKEND_HOST, which default to chattermate-db and chattermate-backend here.
  • The dashboard's API, websocket and widget URLs are worked out from BACKEND_URL, so a user changes two URLs when they add domains. The workers wait until the API is healthy, i.e. until it has run the migrations.

The API runs on its own port (8171) next to the dashboard (8170), because the chat widget on the user's website connects to it directly.

Open-source (Apache-2.0) AI customer support: dashboard, API, three
background workers, PostgreSQL with pgvector and Redis, on the 1.0.31
release images.

Signed-off-by: Runix <admin@chattermate.chat>
…ions

The dashboard's API, websocket and widget URLs now follow BACKEND_URL
instead of being three more settings to keep in sync. Workers wait for
the API to be healthy, so they no longer query tables before the
migrations exist. Post-install notes say sign-in needs https.

Signed-off-by: Runix <admin@chattermate.chat>
Signed-off-by: Runix <admin@chattermate.chat>
@Panelica

Copy link
Copy Markdown
Owner

Thank you for this — it is one of the more carefully prepared submissions we have had. We read the template before writing this, and the things that usually go wrong are right here: every from_env on a linked service resolves to a variable the template actually defines, the secrets are "secret": true with empty defaults so the panel generates them, the database and cache publish no ports, and there are no host bind mounts, no privileged and no custom network. That saved us a round of back and forth.

What happens next

It now goes into our review, which takes a few days. We do not merge a template on reading alone: we deploy it on a clean server from the panel's own one-click path, watch it come up, and measure it. For this one we will be checking in particular:

  • actual memory and CPU under load against the declared min_memory_mb: 2048, including while the embedding model is fetched on first boot
  • the two published ports (8170 dashboard, 8171 API/websocket/widget) — most of our templates publish one, so we want to be sure the second is genuinely required from outside and document why
  • the shell command on the dashboard container (export VITE_* … until nslookup … exec /docker-entrypoint.sh), since template-side shell logic has broken for us before on images that ship no shell
  • first-run through the setup page, and behaviour after a restart and a host reboot

One thing we need from you before we start

Please confirm that this is the final version of the template as you intend it to ship. Once testing begins, any change — a new image tag, a different default, an added variable — invalidates what we have measured and we have to start the run again from a clean server. That is a few days lost for both of us, and it is the main reason templates sit in review longer than they should.

In particular, if chattermate/frontend:1.0.32 and chattermate/backend:1.0.32 are likely to be superseded within the next week or two, tell us now and we will test the tag you want shipped rather than one you are about to replace.

If anything above is wrong or you would like to adjust something first, push it now and say so here — we would much rather wait a day than test the wrong revision. Once you confirm, we will take it from there and report back on this PR with what we measured.

— Panelica

@chattermate

Copy link
Copy Markdown
Contributor Author

Thanks for the careful read. Yes, this is the final version: please test chattermate/frontend:1.0.32 and chattermate/backend:1.0.32. We release often, but nothing coming up changes what this template depends on, so we won't push to this PR while you test. Any later version bump will come as a separate PR after you've reported.

On the second port: the API on 8171 has to be reachable from outside. The chat widget runs on customers' own websites and connects to the API and its websocket straight from the visitor's browser, and the dashboard on 8170 calls the API from the browser too. So both need to be public.

The dashboard command uses sh, which the frontend image (nginx on Alpine) includes.

@Panelica
Panelica merged commit 20276ca into Panelica:main Nov 20, 2026
@Panelica

Copy link
Copy Markdown
Owner

Merged — thank you. It is in the catalogue now, and the review notes above held on the merge: validate.py passes, every from_env resolves, the data services publish nothing, and the secrets are generated rather than shipped.

Two things we added on top of your commits (b7af800), both in the spirit of the submission rather than against it:

  • The two data services are pinned: pgvector/pgvector:pg16 → 0.8.7-pg16 and redis:7-alpine → 7.4-alpine, the releases those tags resolve to today.
  • Every image now records its digest. This is new for the whole repository, not just for your template: a tag is a pointer its publisher can move, so what we review today is not necessarily what a customer's server pulls next month. Each template carries image_digest for the main image and a digest on each linked service, and the panel deploys repository:tag@digest — so a deployment runs the reviewed content or fails, never something else quietly. scripts/resolve_digests.py --write fills them in, CI re-resolves them on every push, and the schema and lint now reject latest, a missing tag and a missing digest. CONTRIBUTING.md has the details.

So when you ship 1.0.33, the version bump is two lines: the tag and the digest (python3 scripts/resolve_digests.py --write templates/chattermate.json does the second). We kept your note that later versions come as separate PRs — that is exactly the right shape for this.

The template reaches panels with the next panelica-server release; the seed that carries it (000648) and the column behind it (000647) are already on our side, tested up/down/up against a real database.

For what it is worth, the submission was a pleasure to review: the Fernet-key derivation, the worker start order and the BACKEND_URL-derived widget URLs were all explained before we had to ask.

@Panelica

Copy link
Copy Markdown
Owner

Follow-up: the template is now live for users, not just merged.

It shipped in Panelica 1.0.607, which is on the stable channel, so a server that applies the update finds ChatterMate in the Docker Manager catalogue right away. Nothing else is needed on your side.

Two things changed after the merge, both already in that release:

  • The images are pinned by tag and digest, so a deployment resolves to exactly the build we reviewed: chattermate/frontend:1.0.32 and chattermate/backend:1.0.32 plus their digests. A retagged image upstream can no longer land on a user's server unnoticed; when you publish a new version, open a PR with the new tag and digest and we will roll it forward.
  • The identity card and the first-run notes now print the port the deployment is actually reachable on. They used to show the container port, which is misleading whenever the host port is taken and the panel picks another one, so the text is generated from the real mapping now.

Thanks again for the way the submission was prepared - the from_env wiring and the pgvector service made the review short.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants