

Before you begin
You need:- Docker with Compose v2 (
docker compose versionprintsv2or later). curlandopenssl.- About 6 GB of free disk for the images.
Fonoster uses ports
443 and 80 (dashboard and API over HTTPS, and its redirect), 5060 UDP
and TCP (SIP), the UDP ranges
10000-10999 and 11000-11999 (call media), and, on localhost only, 4222 (NATS) and 9000-9001
(MinIO). Stop anything else that uses them, such as another Fonoster install, or change the ports
in step 2.If this machine ran Fonoster 0.27 or older with Docker Compose, stop it first: run
docker compose down in its folder. Don’t remove its volumes. The new install doesn’t use them.Install Fonoster
1
Download the release
Download the release and unpack it into a new The folder holds
fonoster folder:init.sh, compose.yaml, compose.http.yaml (plain HTTP behind your own TLS
proxy), compose.tls.yaml (SIP over TLS), compose.external-db.yaml (your own Postgres),
compose.region.yaml (a private region), a config folder with one file per service, an
ansible folder (the playbook that installs private regions) and a README.md.2
Generate the configuration
Run It prints what it wrote and how to reach the install:The host address is the one softphones, carriers and browsers use to reach this machine. To use a
different one, run
init.sh to generate the secrets and keys, find this machine’s address, and set the SIP
port. It needs only a shell and openssl:./init.sh --host-ip <address>.init.sh also generates a certificate in config/tls/, so Fonoster serves HTTPS from its first
start. It’s for getting started: use a real certificate before you go live
(Serve over HTTPS).3
Start Fonoster
Start every service in the background:The first start downloads the images, which can take 10 minutes or more. Then list the services to see
them running:You see
apiserver, autopilot, dashboard, envoy, appbridge, roomr, minio, nats,
postgres, routr and rtpengine, each Up.4
Create your login
Create the first user once. Put a password in a file only you can read, then pass it on stdin, so
it never shows on screen or in your shell history:It prints
created you@example.com and its workspace. Keep the password in your password
manager, then delete owner.pw. Running the command again changes nothing.5
Sign in to the dashboard
Open the dashboard address in your browser. It warns that the connection isn’t private, because
the certificate is the one
init.sh generated: open the details and continue to the site. Your
browser remembers the choice. Then sign in with the owner’s email and password, and on Choose
a workspace, select your workspace.Fonoster is running and you are signed in as the owner.
Where your files are
Everything lives in thefonoster folder:
To change a setting, edit
config/<service>.yaml, then recreate that service. For example, after you
edit config/appbridge.yaml:
docker compose logs <service> names the key. When you
upgrade, apply your edits to the new release’s files, see Upgrade.
Add platform keys
Calls need at least a text-to-speech vendor. Fonoster offers every vendor in its catalog to every workspace, and calls use your platform key for that vendor unless the workspace added its own in the dashboard under Vendor keys. The release’s config files hold a placeholder platform key for each vendor, such asYOUR_DEEPGRAM_API_KEY. Replace the placeholder with your key:
For example, this line in
config/appbridge.yaml sets the Deepgram key:
config/appbridge.yaml
A vendor whose placeholder you leave in place is still offered, and its calls fail until a key is
set. If the dashboard’s Vendor keys page says no vendors are configured, the catalog has no
vendor left that takes a key.
Serve over HTTPS
Fonoster serves the dashboard and API over HTTPS from its first start, with the certificateinit.sh
generated in config/tls/. It gets you started: browsers warn once, and the CLI and SDK trust it
through config/tls/ca.pem (--ca-file, or FONOSTER_CA_FILE). Before you go live, replace it with
a real certificate for your domain, see Serve over HTTPS.
If you already run a TLS proxy (Caddy, nginx, Traefik, a load balancer), serve plain HTTP behind it
instead: set COMPOSE_FILE=compose.yaml:compose.http.yaml and HTTP_BIND=127.0.0.1 in .env.
Use your own Postgres
The install runs its own Postgres. To use one you manage instead, point every service at it before the first start, see Use an external Postgres.Let carriers and phones reach you
A new install names trunks and domains underfonoster.local, which works only on your own
network. To give them a domain you own, point DNS at this machine and open the SIP and audio ports,
see Connect carriers and phones.
Next steps
Upgrade
Move to a new release and keep your secrets, keys and settings.
Make your first call
Add a vendor key, create an agent, and call it from a softphone.
Configure services
Change what each service does with the files in
config/.