Self-hosted service
stoatchat/self-hosted avatar
stoatchat/self-hosted

Five containers, two default passwords: what stoatchat/self-hosted asks you to finish

Deploy Stoat on your own infrastructure!

2,694 stars303 forksJavaScriptAGPL-3.0

At a glance

What is it?
The Stoat self-hosting repository is a Docker Compose stack, a secret generator and a host hardening script. The parts worth reading are the ones it leaves open: an event broker with no volume, three untagged images, and credentials written straight into the file.
Who is it for?
Stoat's self-hosting repository is a thin, opinionated layer: one compose file, one config generator, one hardening script, and a host setup that is stricter than the stack inside it. Use it if you already run containers and can read a compose file yourself, because the interesting decisions are the ones it declines to make.
Can I use it commercially?
Yes, with strict conditions. AGPL-3.0 is a network copyleft licence: if people use a modified version over a network, for example as a hosted service, you must offer them its source code under the same licence.
Is it still maintained?
Yes. The repository last received commits 2 days ago.
What is it written in?
Mainly JavaScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • stoatchat/self-hosted2,694 ★ · +68
Star history
Repository2026-09-112026-11-23
stoatchat/self-hosted2.6k2.7k

68 Stars in the last 73 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

RabbitMQ and the object store ship with passwords written into the file

Credentials are assigned inline rather than read from the secrets file. RabbitMQ starts as `rabbituser` with the password `rabbitpass`, and the object store starts with `minioautumn` twice, once as root user and once as root password:

yaml
  rabbit:
    image: docker.io/rabbitmq:4
    restart: always
    environment:
      RABBITMQ_DEFAULT_USER: rabbituser
      RABBITMQ_DEFAULT_PASS: rabbitpass

Those are the broker's default user and password, so anything that can reach its port on the compose network can authenticate as it. The object store is not MinIO either. The image is `docker.io/pgsty/silo`, started with `command: server /data`, and it keeps MinIO's own variable names: `MINIO_ROOT_USER`, `MINIO_ROOT_PASSWORD` and `MINIO_DOMAIN`. A third party image standing in under the original's environment names is worth knowing about before you decide what holds your uploads. Neither pair is overridden anywhere in the file, and `secrets.env.example` is the only committed template for real values. The hardening script in the guide touches SSH and ufw, not these.

The event broker is the only service with nowhere to keep data

Four of the five services bind mount a directory under `./data`: mongo at `./data/db:/data/db`, rabbit at `./data/rabbit:/var/lib/rabbitmq`, the object store at `./data/minio:/data`, and caddy at `./data/caddy-data` plus `./data/caddy-config`. The service commented as the event message broker and KV store is four lines long and has neither:

yaml
  redis:
    image: valkey/valkey:9-alpine
    restart: always

No volume, no healthcheck. The two neighbours that do have healthchecks spell theirs out in full, one running `db.runCommand("ping").ok` through `mongosh` and the other running `rabbitmq-diagnostics -q ping`, which shows what a healthcheck looks like in this file and that the broker is the one service without one. `restart: always` covers a container that stops, not one that is removed and rebuilt, so whatever the broker keeps in its key value store starts from empty when compose brings it back. The guide's table of contents also reserves a section for exposing the database insecurely, so its authors treat these ports as reachable, and says nothing about the broker's storage.

Three of the five images carry no tag, and the repository has no releases

Version pinning here is inconsistent. The broker is on `valkey/valkey:9-alpine` and RabbitMQ on `docker.io/rabbitmq:4`, both held at a major version. The database is `docker.io/mongo`, the object store is `docker.io/pgsty/silo` and the web server is `docker.io/caddy`, none of them tagged, so each resolves to whatever that repository published most recently when the image is built. Pair that with the absence of any GitHub release and the upgrade path has no version ledger on either side: updating means pulling `main` and rebuilding, and the database engine and the storage layer can both move between two runs of an identical file. The last push to the default branch is dated 2026-09-29. The `api` service, which runs the back-end, names its image as `ghcr.io/s` and the file says nothing further about it, so the web front-end, the file server and the metadata and image proxy that belong to a full instance are not itemised there either.

The firewall opens two port ranges that nothing in the file publishes

The hardening block is a single copy and run script, and it is the most opinionated thing in the repository:

bash
ufw allow ssh
ufw allow http
ufw allow https
ufw allow 7881/tcp
ufw allow 50000:50100/udp
ufw default deny
ufw enable

Two of those openings are for ports the compose file never publishes. The only service with a `ports` section is caddy, mapped at `80:80` and `443:443`. `7881` and the range from `50000` to `50100` over UDP have to be forwarded by hand on another cloud provider or a physical machine, and the guide's table of contents reserves a heading for precisely that question, why those two are not in the Caddyfile. A second reserved heading covers being kicked on video enabled instances when turning video on, which is the only place those two ranges are tied to anything. The same script also rewrites the `PasswordAuthentication` line in `sshd_config` with a `sed` expression, appends it when a `grep` finds no such directive, and ends with a `reboot`.

The domain arrives as one script argument and one Compose alias

Configuration is split across files you either fill in or generate: the committed `Caddyfile`, the committed `compose.yml`, and a `secrets.env` that a script writes for you. The domain enters through a single argument:

bash
chmod +x ./generate_config.sh
./generate_config.sh your.domain

That script is what generates the secrets a new instance needs, and the instruction attached to it is the sharpest warning in the guide: back up `secrets.env`, because losing it may cost you access to every file on the instance. Beyond the file name the README says only what the script produces, not which values it writes or how they are derived. The one place a variable reaches the compose file directly is the caddy service's network alias, `${STOAT_DOMAIN:-caddy}`, so a missing environment file falls back to the service's own name instead of failing loudly. `migrations/` sits in the repository root beside the compose file, which puts schema changes in this repository rather than inside the images.

Most official clients do not connect, which leaves the web client

The guide states its most consequential limitation in a note near the top rather than in the deployment steps: most official clients do not support self-hosted instances. The web client is described as working well, and installing it as a progressive web app is said to bring the experience close to a native one, with per client instructions pointed at `Guides.md`. That same file is where the other common alterations go, NGINX instead of the bundled reverse proxy and switching the instance to invite only. It ends up as the destination for four separate topics, and the repository root holds ten entries, of which `Guides.md` and `secrets.env.example` are the two a new operator most needs. Both are left to the reader, along with what the five Compose services are actually called.

The project is Stoat and the plumbing still says Revolt

Renaming left traces. The compose file gives the upload bucket the alias `revolt-uploads.minio` and, under a comment marked legacy support, keeps six older aliases for attachments, avatars, backgrounds, icons, banners and emojis. The configuration file the guide points at for more options lives at `crates/core/config/Revolt.toml` in a different repository, `stoatchat/stoatchat`, and the VPS referral code embedded in the install steps is `REVOLTCHAT`, while the product name, the homepage and the compose file's own `name` field all say Stoat. Licensing is AGPL-3.0, and rather than explaining the boundary the guide sends readers to a separate FAQ on the developer site about licensing and brand use. Anyone writing a configuration against this stack by hand needs to know which of those names are current and which are load bearing aliases for objects already stored.

Editorial conclusion

Stoat's self-hosting repository is a thin, opinionated layer: one compose file, one config generator, one hardening script, and a host setup that is stricter than the stack inside it. Use it if you already run containers and can read a compose file yourself, because the interesting decisions are the ones it declines to make. Before deploying, read the notices and security advisory sections at the bottom of the README, confirm that the clients you care about actually connect to an instance, and replace the broker and object store credentials, since nothing in the file does that for you.

Frequently asked questions

What does stoatchat/self-hosted actually deploy?

Configurations and instructions for a full Stoat instance, covering the back-end, the web front-end, a file server, and a metadata and image proxy. The Compose project is named stoat and defines a MongoDB database, a valkey broker, RabbitMQ, a MinIO style object store and Caddy.

Which Stoat clients can connect to a self-hosted instance?

Most official clients do not. The README points at the web client, which it says works well, and notes that installing it as a progressive web app makes the experience close to a native app. Per client instructions are kept in Guides.md.

How much server does the Stoat self-hosting guide expect?

At least 2 vCPUs and 2 GB of memory. The guide names Ubuntu Server as the operating system used in production, and says its own testing environment sits on a KVM 2 VPS from Hostinger.

Where does a self-hosted Stoat instance keep uploaded files?

In the object store container, which bind mounts ./data/minio to /data and answers to the virtual host alias revolt-uploads.minio, plus six legacy aliases for attachments, avatars, backgrounds, icons, banners and emojis. The compose file runs the third party image docker.io/pgsty/silo rather than MinIO itself.

What should an operator check on an instance built before February 28, 2026?

The README opens by warning anyone updating such an instance to consult its notices section, and it collects security advisories at the bottom of the same file. The repository has no GitHub releases, so those two sections are where version specific guidance lives.

Official sources

  1. Issues
  2. License: AGPL-3.0
  3. Project website
  4. README
  5. stoatchat/self-hosted on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/stoatchat-self-hosted.svg)](https://hysenlabs.com/projects/stoatchat-self-hosted)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/stoatchat-self-hosted.svg)](https://hysenlabs.com/projects/stoatchat-self-hosted)

Was this useful?