Understand the system before reaching for the restart button.
The first time you open an OpenCTI Compose file, you may wonder why a single intelligence platform needs so many services. You have not missed anything: the platform assigns different jobs to components suited to them. This chapter explains those roles before considering the resources your lab needs.
By the end, you should be able to answer three questions: where web requests arrive, why an import can still be waiting in a queue, and which data must survive a container rebuild. These answers will also guide later troubleshooting.
Seven roles, each with a specific job.
| Component | Service name in this lab | What it does |
|---|---|---|
| OpenCTI platform | opencti | Provides the web interface, API, and core knowledge management features. |
| Search and knowledge storage | elasticsearch | Holds searchable data and indexes. Disk capacity, memory, and backups are essential. |
| Coordination and caching | redis | Supports caching, events, and coordination. The word ‘cache’ does not mean it is safe to clear arbitrarily. |
| Message queue | rabbitmq | Queues work and passes it between components. Receiving a job does not mean the job is complete. |
| Object storage | minio | Provides S3-compatible storage for files and related content. This lab uses Silo. |
| Background processing | worker | Processes import jobs retrieved from the queue. |
| Connectors | connector-import, connector-export | Handle STIX file imports and exports. Different connector types have different triggers. |
This table simplifies responsibilities to help beginners locate problems. It does not imply that every component follows one linear path. For architecture details and supported alternatives, consult the official architecture and infrastructure requirements.
Reader's browser → OpenCTI UI / GraphQL API
↕
Elasticsearch / Redis / S3
Data source → Connector → Import queue → Worker → Platform knowledge
↓
Verify with queries and relationshipsIf a connector is running but new objects are missing, trace its jobs and the worker rather than immediately assuming the source is empty. If the API returns an object but the interface does not show it, check filters, markings, and user permissions next.
Define the lab's scope first.
This handbook uses a single node, one worker, and a small teaching dataset. The initial lab does not enable the whole XTM suite or pull large external feeds. This keeps results traceable: which command created a record, and which check established that it exists.
The host is an Apple Silicon arm64 machine with 64 GB of physical memory. A dedicated Colima virtual machine has 6 CPUs, 16 GiB of memory, and a 60 GiB data disk. This is the tested configuration, not a guarantee for every workload or a statement of official minimum requirements. Production sizing also depends on retention, concurrent queries, import throughput, attachments, and backup space.
Inside a container, localhost refers to that container itself. The worker reaches the platform through http://opencti:8080; in the Mac browser, use http://localhost:18080. Mixing up these addresses is a common first mistake and an easy one to fix.
We bind only the platform's port 18080 to 127.0.0.1. Elasticsearch, Redis, RabbitMQ, and object storage do not publish external ports. The lab's database settings are not a production configuration for an internet-facing service. Read the security chapter before providing access to a team.
Confirm Docker works before troubleshooting OpenCTI.
On Linux, use Docker Engine with the Compose plugin. On Windows, use a configured Linux container environment. On macOS, Docker Desktop or Colima can provide that environment. Installation differs by operating system; choose the appropriate version from the official Docker site. This lab follows the macOS workflow provided by the official Colima project.
brew install colima docker docker-compose
colima start --profile opencti-tutorial --cpu 6 --memory 16 --disk 60 --vm-type vz
docker context show
docker version
docker compose versionIf Docker cannot find Compose, follow the Homebrew installation output to add /opt/homebrew/lib/docker/cli-plugins to the ~/.docker/config.json file's cliPluginsExtraDirs array. This path is for Homebrew on Apple Silicon. Do not overwrite the entire existing configuration or paste credentials from it into an issue report.
If Docker is already available, you do not need another Colima environment. First verify that the Docker context points to the intended local environment, so you do not accidentally create the lab containers on a remote host.
Check Elasticsearch kernel settings inside the Linux environment running the containers.
This lab sets vm.max_map_count to 1048576. On macOS, containers run inside a Linux virtual machine, so change the value there rather than applying the same command to macOS itself. This is a host-level setting affecting that VM; verify it again after rebuilding the environment.
colima ssh --profile opencti-tutorial -- sudo sysctl -w vm.max_map_count=1048576
colima ssh --profile opencti-tutorial -- sysctl vm.max_map_countFor a native Linux deployment, follow the official Elastic guidance for vm.max_map_count and separately configure persistence across reboots. One successful command does not establish that a setting is permanent.
Your acceptance checks are: the Docker client can reach the server, Compose is available, the context is correct, and you know where data will be stored. Once these are in place, start the services in the next chapter.
Want to understand how more security tools work? Explore security tools and concepts at SecTools.tw.
Finished this chapter?
Mark it when you are ready. Opening or scrolling through a chapter does not complete it automatically. You can undo your choice.
Progress is saved only in this browser. No account or automatic device sync. Clearing site data also removes progress.