Deploying the server
This page takes you from an empty Docker host to a working Axiom server with the gateway and companion tools. It also lists every setting the server reads and covers the IP-only variant for hosts without a DNS name.
Requirements
- A Linux host with Docker Engine and the Compose plugin. Docker Desktop works for trials, but its port forwarding usually hides client addresses, so every analyst looks like one address to the sign-in lockout.
- The Axiom server source folder, which holds
docker-compose.yml,caddy/andcompanions/. Run every command below from that folder. - A public DNS name pointing at the host, such as
axiom.example.com, for Let's Encrypt certificates. Without one, use the IP-only variant. - Port 80 open to the whole internet, for certificate issuance and renewal.
- A network firewall in front of the host. Docker-published ports bypass host firewalls such as ufw; see Gateway and certificates.
Deploy order
Bring the three compose projects up in this order: server, then companions, then the gateway. The projects declare their Docker networks as external, so create the four networks first: one shared by the gateway and the server, and one per companion tool shared only with the gateway, so the tools can reach neither the server nor each other. The gateway must come last because it binds port 8480, which an older server configuration may still hold.
The whole sequence looks like this; the steps below explain each part.
docker network create axiom-backend # once per host: gateway <-> server
docker network create axiom-kuma # once per host: gateway <-> Uptime Kuma
docker network create axiom-portainer # once per host: gateway <-> Portainer
docker network create axiom-cyberchef # once per host: gateway <-> CyberChef
nano .env # AXIOM_ADMIN_PASSWORD=...
docker compose up -d --build # the server
(cd companions && docker compose up -d) # CyberChef, Uptime Kuma, Portainer
cp caddy/.env.example caddy/.env
nano caddy/.env # SITE_HOST and ACME_EMAIL
(cd caddy && docker compose up -d) # the gateway
docker logs -f axiom-gateway
- Create the four networks with the
docker network createcommands above. Without them, the compose projects refuse to start. - Create a
.envfile next todocker-compose.ymlcontainingAXIOM_ADMIN_PASSWORD=followed by the first admin's password. Use a text editor, notechoon the command line, so the password stays out of your shell history. This is required: on a fresh volume the server refuses to start without it. - Build and start the server with
docker compose up -d --build. On first start it creates the admin account, a self-signed certificate for the hop from the gateway, and a public copy of that certificate in the smallaxiom-cert-exportvolume, which the gateway verifies the hop against. - Start the companion tools from the
companionsfolder withdocker compose up -d. - Configure the gateway: copy
caddy/.env.exampletocaddy/.env, then setSITE_HOSTto your DNS name andACME_EMAILto the address that should receive Let's Encrypt expiry notices. - Start the gateway from the
caddyfolder withdocker compose up -d, and watchdocker logs -f axiom-gatewayforcertificate obtained successfully. - From another machine, check the app's path without
-k:curl https://axiom.example.com:8480/api/healthshould return"status":"ok"with a valid certificate. - Claim the tools' own admin accounts straight away. Sign in to the portal at
https://axiom.example.com/portalas the admin, then openhttps://axiom.example.com:8443(Uptime Kuma) andhttps://axiom.example.com:8444(Portainer). The first visitor claims Kuma, and Portainer disables its setup page if nobody claims it within about five minutes;docker restart portainerreopens the window. - Sign in at
https://axiom.example.com/adminand, under People → Users, create the analyst accounts and a second admin. See Accounts and security. - Set up backups and test a restore the same week. See Backups and upgrades.
Analysts then enter https://axiom.example.com:8480 under Settings → Team server → Collaboration server in AxiomSearch and sign in. Behind the gateway there is no fingerprint to check.
Warning: Compose names the data volume after the project folder, for example axiomsearch-server_axiom-data. If you move or rename the folder, the server starts on a new, empty volume. Check which volume is in use with docker inspect -f '{{range .Mounts}}{{.Name}} -> {{.Destination}}{{println}}{{end}}' axiom-server.
The first admin account
When the server starts with no accounts (a fresh volume), it creates one admin account:
- The username is
ADMIN_USER, defaultadmin, with the display name "Administrator". - The password is
ADMIN_PASSWORD, which the compose file fills fromAXIOM_ADMIN_PASSWORD. If it is empty on a fresh volume, the server refuses to start and the log names the variable — it never generates a password and prints it to the container logs, where anyone who can read them later would find a working admin credential. A volume that already has accounts starts fine without the variable. - The first admin's password is not length-checked, so choose a strong one.
Once any account exists, these variables are ignored. Changing AXIOM_ADMIN_PASSWORD later does nothing; reset passwords on the admin page instead (Reset password under People → Users).
Server settings
All server settings are environment variables on the axiom-server service. docker-compose.yml sets the common ones.
| Variable | Default | Purpose |
|---|---|---|
ADMIN_USER | admin | Username of the first admin. First start only. |
ADMIN_PASSWORD | none — required on a fresh volume | Password of the first admin. First start only: without it, a server with no accounts refuses to start. Compose reads it from AXIOM_ADMIN_PASSWORD. |
CERT_EXPORT | unset | File path that receives a PEM copy of the public certificate being served, for the gateway to verify the hop against. The compose file points it into the axiom-cert-export volume. No key material is ever written there. |
DATA_DIR | /data | Where all data is stored |
PORT | 8480 | Listen port inside the container. The gateway expects 8480. |
TLS | auto | auto serves HTTPS with a self-signed certificate or the TLS_CERT pair. off serves plain HTTP, for local development only. |
TLS_CERT, TLS_KEY | unset | Paths inside the container to a PEM certificate and key, such as one issued by your IT team |
TRUST_PROXY_HEADERS | axiom-gateway | Proxies whose X-Forwarded-For header is believed, and whose X-Forwarded-Host names the host redirects and links are built for; from anyone else the request's own Host is used. See Gateway and certificates. |
MAX_BODY_MB | 64 | Largest request body in MB, 1 to 1024 |
MAX_CASE_MB | 24 | Largest stored case document in MB, 1 to 1024. A share, save or node add that would pass it is refused and nothing is stored. |
MAX_CASES_PER_ACCOUNT | 200 | Shared cases one account may own at once, 1 to 100000. Sharing another case is refused until some are deleted; admins are not exempt. |
DIGEST | on | The weekly admin digest email; off turns it off |
RETENTION_DAYS | unset (off) | Days without a write before an open shared case counts as stale, 1 to 3650. See Weekly digest and case retention. |
RETENTION_AUTO_CLOSE | off | on closes stale cases automatically; needs RETENTION_DAYS |
MFA_ISSUER | AxiomSearch | The name authenticator apps show for two-factor sign-in |
RELEASE_PUBKEY | unset | Ed25519 public key (hex) that app releases must be signed with. See App releases. |
PUBLIC_SITE | off | on serves the public website: homepage, downloads, wiki and sign-ups. Leave it off on a team server. |
HTTPS_PROXY, NO_PROXY | unset | Standard proxy variables for the server's outbound calls to a Cortex XSIAM tenant |
An invalid TRUST_PROXY_HEADERS, MAX_BODY_MB, MAX_CASE_MB, MAX_CASES_PER_ACCOUNT, DIGEST, RETENTION_DAYS, RETENTION_AUTO_CLOSE or RELEASE_PUBKEY stops the server at startup on purpose, rather than running with a setting you didn't intend. After changing a variable, run docker compose up -d in the server folder to recreate the container.
The gateway reads two variables from caddy/.env, and refuses to start without them:
| Variable | Purpose |
|---|---|
SITE_HOST | The address every gateway site answers on, normally your DNS name |
ACME_EMAIL | Let's Encrypt registration contact |
After changing caddy/.env or the Caddyfile, recreate the gateway with docker compose up -d --force-recreate; a plain up -d can report the container as unchanged and keep the old settings.
IP-only variant
Without a DNS name there is no Let's Encrypt certificate, and the certificates Caddy issues for a bare IP address are short-lived. An app that pinned one would break at every renewal, so let the server serve the app port itself with its long-lived self-signed certificate:
- In
caddy/Caddyfile, delete the{$SITE_HOST}:8480site. Incaddy/docker-compose.yml, delete the8480:8480port line. - In the server's
docker-compose.yml, uncomment the twoports:lines so the server publishes8480:8480. - If the gateway is already running, recreate it first so it releases the port:
cd caddy && docker compose up -d --force-recreate. - Start or re-up the server with
docker compose up -d, then check it on the host withcurl -k https://localhost:8480/api/health. - Share the certificate fingerprint with analysts so they can pin it. See Gateway and certificates.