Run the XTM platform locally
Start the whole XTM platform, XTM One, OpenCTI, OpenAEV, OpenCRQ and XTM Composer, on one machine with Docker Compose.
This tutorial starts the XTM platform on one machine with the official Docker deployment, FiligranHQ/xtm-docker, in about fifteen minutes. Two commands configure and start the whole stack: XTM One, at the center of the platform, with OpenCTI, OpenAEV, OpenCRQ, XTM Composer, their default integrations and the shared services. No module is optional. It is meant to try the platform or to develop against it, not for production.
- git clone → .env: random secrets
- .env → docker compose up -d
- docker compose up -d → XTM One: starts
- docker compose up -d → OpenCTI: starts
- docker compose up -d → OpenAEV: starts
- docker compose up -d → OpenCRQ: starts
- XTM One → Sign in: healthy
- OpenCTI → Sign in: healthy
- OpenAEV → Sign in: healthy
- OpenCRQ → Sign in: healthy
Every step below has a command and a check, so a coding agent such as Claude Code can follow it on its own. See Deploy with an AI agent.
What you need
- Docker Engine 20.10 or later with Docker Compose 2.20.2 or later (the stack is split into included files):
docker compose versionanswers. - On a Mac with an Apple chip: Docker Desktop with Use Rosetta for x86_64/amd64 emulation on. XTM One is published for Intel processors only and runs through emulation.
- 16 GB of RAM for the whole platform, 32 GB recommended, and 50 GB of free disk.
- Git, to get the deployment. Nothing else: the configuration is generated in a container, and the same commands work on Linux, macOS and Windows.
- Free ports on the machine: 8080 (OpenCTI), 8081 (OpenAEV), 8082 (OpenCRQ), 8090 (XTM One), and 9200, 9000, 5672, 15672 and 6379 for the shared services.
What the stack runs
Every module starts, with the shared services they use, and each platform answers on its own address.
docker compose pull
docker compose up -dNo module is optional: the XTM platform is deployed whole, as the xtm-docker compose describes it.
- XTM One
http://localhost:8090 - OpenCTI
http://localhost:8080 - OpenAEV
http://localhost:8081 - OpenCRQ
http://localhost:8082
Start the platform
-
Get the deployment.
git clone https://github.com/FiligranHQ/xtm-docker.git cd xtm-docker -
Create the configuration.
docker compose -f init.yml run --rm initA temporary container creates
.envfrom.env.sample: a random value for every password, key and token, the users of the shared services, and mail sent to the local machine. It prints the address and the admin password of each platform. Every secret stays in.env, which only you can read; the command never overwrites an existing.env.Check that it workeddocker compose config --quietIt prints nothing: the stack's configuration is complete.
On a machine with 16 GB of RAM, give Elasticsearch 2 GB instead of 4: set
ELASTIC_MEMORY_SIZE=2Gin.env. If another program uses one of the ports above, changeOPENCTI_PORTorXTM_ONE_PORTin.env. The ports of OpenAEV, OpenCRQ and the shared services move indocker-compose.override.yml, withOPENAEV_PORTandOPENCRQ_PORTset to match, as Network and ports shows. -
Start the platform.
docker compose up -d --pull always--pull alwaysdownloads the current images first, even if you have run XTM before: Docker Compose would otherwise start an older image kept under the samelatesttag. The first start creates the databases: allow a few minutes.Check that it workeddocker compose ps opencti openaev xtm-one opencrqThe four platforms say
(healthy)in their status. Run it again until they do. -
Sign in at the addresses the second step printed, with the admin email and password of each platform. They are in
.envtoo:OPENCTI_ADMIN_PASSWORD,OPENAEV_ADMIN_PASSWORDandXTM_ONE_ADMIN_PASSWORD. OpenCRQ has no password: Sign in with XTM One, as the admin of XTM One. You land in its first tenant,Default, which OpenCRQ creates at its first start and xtm-docker already connects to OpenCTI and OpenAEV.
Stop and start over
| To | Run | Your data |
|---|---|---|
| Stop the platform | docker compose stop | Kept |
| Remove the containers | docker compose down | Kept in the volumes |
| Start from scratch | docker compose down -v | Deleted, with every volume |
What's next
- Deploy with an AI agent, to repeat this without typing.
- The XTM platform, what each module does and how they work together.