Glossary
Docker Compose
One file that declares every container in a stack and one command that starts them together. The usual way to run a self-hosted chat server on a single machine or a developer’s laptop.
General definition
Docker Compose is a tool for defining and running applications made of several containers. Instead of starting each container by hand with its own flags, you describe the whole stack in a compose.yaml file: which images to run, how they are configured, which ports they expose, which volumes hold their data and how they reach each other on a private network. docker compose up then creates everything in the right order and docker compose down removes it. The file format is the open Compose Specification, which Docker and other tools implement.
A Compose file has a handful of top-level sections:
- services: the containers themselves, each with an image or a build context, environment variables, ports, a restart policy, a health check and
depends_onordering - networks: private networks on which services find each other by service name through built-in DNS
- volumes: named storage that outlives container restarts, used for databases and uploaded files
- configs and secrets: files and credentials injected at runtime instead of baked into images
- profiles: optional groups of services, for example monitoring, that start only when asked for
Compose runs on one host. It restarts crashed containers and can run several replicas of a stateless service on that machine, but it does not schedule across nodes, replace a failed host or roll a new version out gradually. Those jobs belong to an orchestrator such as Kubernetes, where a Helm chart plays the role the Compose file plays here, or Docker Swarm, which reads a very similar stack file. The practical split: Compose for development, testing and single-server production where a short restart is acceptable; Kubernetes when you need high availability across machines or autoscaling.
Two details matter for stateful stacks such as chat. Put every database and file store on a named volume or an external service, because a container’s own filesystem disappears when it is recreated. And use health checks with depends_on set to wait for a healthy service, so the API waits for the database to accept connections rather than for its container to merely exist.
Need full control of the stack? Ethora runs as a self-hosted chat server on premise, in your own cloud or from AWS Marketplace.
In the Ethora ecosystem
The Ethora self-hosted stack ships as Docker containers: the Node.js API, the ejabberd XMPP server, MongoDB and the media server for calls, with Grafana and Prometheus monitoring and load-testing tools alongside. A Compose file is the simplest way to bring them up on one server or a laptop, which makes it the natural starting point for an on-premise pilot or an evaluation before a larger rollout. Attachments and exported compliance logs go to an S3-compatible bucket you own rather than into container volumes, so the containers stay disposable.
For production, the dedicated option has Ethora TechOps run the same stack inside your own AWS, DigitalOcean or other cloud account, sized and monitored for your load. The self-hosted chat server page describes the deployment shapes and what each one includes.