Skip to content

Docker Compose

The quickest way to run Argavon: one script, one machine with Docker.

One line, released images

curl -fsSL https://<site>/install.sh | sh

It needs Docker with Compose, curl and openssl, asks nothing, and builds nothing. It makes ./neuroops (set NEUROOPS_DIR for another place), downloads the release's docker-compose.yml and env.template into it, writes .env with generated secrets, starts the stack and waits until it answers. Then open the address it prints and create the first account: it becomes the workspace admin.

Running it again is safe: .env is never replaced and no secret that is set ever changes. If the database volume exists but .env is gone, it stops instead of making new secrets, because they would not open the existing data. Save a copy of .env (a password manager is fine): a backup of the database is useless without its MASTER_ENCRYPTION_KEY.

Variable Default Meaning
NEUROOPS_DIR ./neuroops Where the files and .env go
NEUROOPS_VERSION latest A release such as 1.2.0 pins it
HTTP_PUBLISH 80 Web port, or address:port such as 127.0.0.1:8080 behind your own TLS proxy
NEUROOPS_URL http://localhost[:port] The address people open (used in links in emails and pages)

Only the web container has a published port; the database and the API server are on the internal network. Upgrades and rollback: Self-host upgrades.

Try the demo

git clone https://github.com/neuroops/neuroops.git
cd neuroops
./quickstart.sh --demo

This starts Argavon (Postgres, the backend and the web server) plus a real Prometheus and Alertmanager. A one-off setup step creates a demo workspace, connects Prometheus to it, and sets up an on-call schedule and an escalation route. Prometheus then fires real alerts at Argavon:

Alert Why it fires
TargetDown on payments-api Real: Prometheus is told to scrape a host that does not exist
QueueBacklogHigh on orders-worker A rule on the clock: 4 minutes in every 15, so you see it resolve, close itself five minutes later, and open a new incident when it fires again
CertificateExpiresSoon on edge-proxy Always firing, at medium severity

The script prints the address, the demo account (demo@neuroops.local) and its generated password (kept in .env as DEMO_PASSWORD). The first incidents appear within a minute or two. Prometheus is on http://localhost:9090 (loopback only).

Stop it with make demo-down (or docker compose -f docker-compose.yml -f docker-compose.demo.yml down); add -v to delete its data.

Install for real

./quickstart.sh

The script:

  1. checks for docker, Docker Compose, curl and openssl (Node is not needed: the web app is built inside its image);
  2. creates .env from .env.example and fills in random values for POSTGRES_PASSWORD, JWT_SECRET, AGENT_SECRET_KEY and MASTER_ENCRYPTION_KEY; running it again keeps them;
  3. runs docker compose up -d --build and waits until /readyz answers.

Open http://localhost, choose Sign up free and create an account (it becomes the admin of a new workspace) and follow Get ready to be paged on the dashboard. A new workspace starts with three sample incidents so the pages are not empty; they are marked "sample", never page anyone, are not counted anywhere, and an admin removes them with one click.

Options:

Variable Default Meaning
HTTP_PUBLISH 80 Port (or address:port, e.g. 127.0.0.1:80 behind a TLS proxy) the web server is published on
NO_BROWSER Set to 1 to stop the script from opening a browser

Everything else is in .env; the whole file is passed to the backend. See the configuration reference.

What runs

Service Image Notes
db postgres:16-alpine Data in the pgdata volume. Not published.
backend built from Dockerfile Runs as uid 10001. Migrations run at start. Not published.
frontend built from frontend/Dockerfile nginx as uid 101 on port 8080, published on HTTP_PUBLISH. Serves the app and proxies /api.

Every container drops Linux capabilities, cannot gain new privileges, has a read-only root filesystem with tmpfs scratch space, and rotates its logs. Only the web server is reachable from outside.

Send a first alert

In the web app, open Integrations, pick Prometheus and connect it to get a source token. Then:

curl -s -X POST http://localhost/api/v1/ingest/prometheus \
  -H "X-Source-Token: $SOURCE_TOKEN" -H 'Content-Type: application/json' \
  -d '{"alerts":[{"status":"firing","labels":{"alertname":"HighErrorRate","service":"payments-api","severity":"critical"},"annotations":{"summary":"High error rate on payments-api"}}]}'

The incident is on the dashboard within seconds. Send the same alert again and you still have one incident: the repeat is counted against it. Connecting your real tools: Send alerts.

Day-to-day commands

docker compose logs -f backend      # backend logs
docker compose ps                   # health of each service
git pull && docker compose up -d --build   # update: rebuild and restart
docker compose down                 # stop (data kept)
docker compose down -v              # stop and delete the database

Back up the database and MASTER_ENCRYPTION_KEY (in .env): without the key, stored integration secrets cannot be read. Production advice, TLS and backups: Production deployment.

If it does not start

  • set POSTGRES_PASSWORD in .env (or JWT_SECRET, AGENT_SECRET_KEY): compose refuses to start without secrets. Run ./quickstart.sh, which fills them in.
  • Not ready after 120 s: docker compose logs backend. A backend that cannot reach the database exits and is restarted until Postgres is healthy.
  • Port 80 is taken: HTTP_PUBLISH=8088 ./quickstart.sh, then use http://localhost:8088.
  • The web app says the API refused the request (CORS): FRONTEND_ORIGIN in .env must be the exact address in your browser's address bar. The script sets it for localhost; change it when you use a real host name.