Skip to content

Install with Docker Compose

The repository has one Compose file per way of running AVACOM:

File For
docker-compose.yml Evaluation on one machine: no sign-in, ports on 127.0.0.1 only. Profiles add MSN (msn), Grafana (grafana) and the demo inbox (demo).
docker-compose.prod.yml Production on one host: HTTPS with Caddy, Postgres, sign-in, and every safety check on.
docker-compose-with-sso.yml Single sign-on through your identity provider (setup).
docker-compose-with-auth.yml Evaluation with username and password sign-in.
docker-compose-with-arq.yml Background workers on a Redis-compatible queue (Valkey), for larger installs.
Terminal window
git clone <your AVACOM repository> avacom
cd avacom
docker compose build
docker compose --profile msn build msn

This builds avacom/avacom-ui, avacom/avacom-api, avacom/avacom-realtime and avacom/avacom-msn, tagged latest. Every build checks the licences of the bundled packages and stops on a disallowed one.

For a laptop or a test VM that only you can reach.

Terminal window
docker compose up -d
Service Address
The app http://localhost:3000
The API (its reference at /docs) http://localhost:8080
Live updates ws://localhost:6001

There is no sign-in: everyone is an administrator. Approved fixes are simulated (AVACOM_FIX_SIMULATE is on). Put an OPENAI_API_KEY=... line in a .env file next to docker-compose.yml to turn on the root-cause analysis.

To add the MSN hub, see Run the MSN hub. To fill the pages, see Load the demo.

Terminal window
curl -fsS https://avacom.bank.local/backend/healthcheck # the API: {}
curl -fsS https://avacom.bank.local/api/healthcheck # the app: {"status":"ok"}
docker compose -f docker-compose.prod.yml ps # every service "healthy" or "running"

Then connect your sources and set where RCAs go.

Pull the new code, build the images again, and start the stack again. The backend applies database migrations when it starts.

Terminal window
git pull
docker compose build && docker compose --profile msn build msn
docker compose -f docker-compose.prod.yml --env-file .env.prod up -d

Back up before you upgrade.

Back up two volumes: avacom-db (Postgres) and avacom-state (provider credentials and other secrets). Without the second, restored providers have to be connected again. For MSN, back up msn-state (its signing key and ledger) and OpenSearch’s snapshots.

Terminal window
docker compose -f docker-compose.prod.yml --env-file .env.prod exec avacom-db pg_dump -U avacom avacom > avacom-$(date +%F).sql