Running OpenCTI in production with Docker Compose: what changes after the trial
A team that has OpenCTI running from the official Compose file needs to decide whether that stack is production-ready, and the answer depends less on the file itself than on what the team must operate around it. The stack is a set of cooperating services: the platform, which serves the web application and GraphQL API; Python workers that consume RabbitMQ messages to perform asynchronous writes; RabbitMQ and Redis as messaging and cache layers; Elasticsearch or OpenSearch for search and indexing; and S3-compatible storage such as MinIO for files. The OpenCTI deployment overview documents these dependencies and the sizing that goes with them, including at least one platform node for every three workers, so the first production check is whether the host or hosts can hold that layout with headroom.
Compose is a sound production choice when a single team owns one host or a small set of hosts, the data center or cloud account already provides backups and monitoring, and an outage of a few hours is tolerable while the team restores service. It becomes a trial tool when the team needs node failover, rolling upgrades without downtime, or consistent scaling of workers and connectors across machines. Before committing, confirm the exact versions of Elasticsearch or OpenSearch, Redis, RabbitMQ and S3 storage against the deployment overview and the OpenCTI product life cycle, since regular and LTS release lines are supported on different schedules and an LTS release requires a license key.
Treat the decision as a review of operating ownership, not of the Compose file. Ask who restores each stateful service, where the dependency versions are recorded, and how a failed worker or full queue is detected. If those answers are not written down, Compose is still usable, but the team should plan the work of running it before the stack carries production data.
How the production Compose components connect
The diagram starts with users reaching a reverse proxy in front of the OpenCTI platform, which serves the UI and GraphQL API. The platform publishes asynchronous write messages to RabbitMQ, and Python workers consume them. Connectors attach to the platform, while the platform depends on Elasticsearch or OpenSearch, Redis and S3-compatible storage. Check that every stateful service sits on a persistent volume inside the host or network boundary, and that only the proxy is reachable from users.
Compose services, their hand-offs, and the volumes that hold state.
Which production options fit which situation
This table compares four ways to run OpenCTI in production, from the stock Compose file to Kubernetes, with the ownership each option creates and its main trade-off. Read each row as a decision: find the situation closest to yours, then check what your team would have to own before committing.
| Option | When it fits | What the team owns | Main trade-off |
|---|---|---|---|
| Stock Compose file with overrides | A pilot or small team that wants the official stack with minimal divergence from the documented layout | Environment variables, volume backups, image pins and upgrade runs against the official file | Fast to start, but a single host is a single point of failure and limits how you scale workers |
| Compose on a single hardened host | A single-site team that accepts one host and needs host hardening, TLS termination and tested restores | Host OS patching, firewall rules, secrets handling, memory limits and worker count tuning | Simple to operate, but the host must be sized for platform, search, queue, storage and workers together |
| Docker Swarm across hosts | A team that wants to place services on several hosts without adopting Kubernetes | Overlay networking, placement constraints, stateful service storage and node replacement | Spreads load across hosts, but Swarm has a smaller ecosystem and stateful dependencies need careful placement |
| Kubernetes | Multiple environments, formal change control or an existing cluster platform team | Cluster lifecycle, ingress, persistent volumes, Helm or manifests, and a monitored upgrade plan | Strongest scaling and recovery options, with the highest operational skill requirement |
| Compose for dependencies, managed services where allowed | Teams that want Elasticsearch or OpenSearch, Redis, RabbitMQ and S3 storage run by a managed or separate service | Connectivity, credentials, backups and version compatibility with the managed service | Reduces what runs on the OpenCTI host, but adds network paths and service-specific limits to confirm |
Environment variables, volumes and memory limits to set before go-live
The official stack reads its settings from environment variables set in the Compose file or an environment file beside it. Before go-live, the platform needs an administrator token, an application secret used for signing and encryption, and credentials for Elasticsearch or OpenSearch, Redis, RabbitMQ and the S3-compatible store. Keep these values out of the repository, load them from a file with restricted permissions or a secrets manager, and rotate any value that was ever committed or pasted into a shared channel. Confirm the exact variable names and defaults in the deployment documentation for your release, because names can change between versions and an old file may start the platform with a setting you did not intend.
- Generate strong values. Create the administrator token and application secret with a cryptographically secure random generator, and store them in your password vault.
- Separate the environment file from version control. Add the environment file to
.gitignoreand commit only a template with placeholder values. - Limit file access. Restrict the environment file to the account that runs Compose, and avoid passing secrets on the command line where process listings can expose them.
- Use distinct dependency credentials. Give each dependency its own user with only the permissions it needs, and do not reuse platform administrator credentials for them.
- Plan rotation. Decide who changes each secret, how workers and connectors receive the new value, and what happens to active sessions.
Check that docker compose config renders every variable you expect, with secret values masked, before the first production start.
Several services hold state that must survive container recreation: the search index, Redis data, RabbitMQ queues and, if it runs in the same stack, the object store. Back each of them with a named volume or a bind mount on a dedicated disk, and treat the platform container itself as stateless apart from what those services keep. Search engine nodes should sit on SSD-backed storage, and the documented sizing lists 16 GB SSD as a baseline for the search engine. Use that figure as a starting point, then size the volume against your expected data volume and retention plan.
- Search index volume. Place Elasticsearch or OpenSearch data on an SSD volume with room for growth, and confirm the data path the image uses in the release notes for your version.
- Redis persistence. Decide whether Redis persistence is enabled and where snapshot or append-only files are written, because the stream carries asynchronous work.
- RabbitMQ data. Mount the RabbitMQ data directory on a persistent volume so queued messages survive a broker restart.
- Object storage. If MinIO runs in the stack, map its data path to a dedicated volume and keep its access keys in the environment file, not the Compose file.
- Backup coverage. Record which volumes each backup job captures, and test a restore of every stateful volume.
Check docker compose config --volumes and docker volume ls to confirm that every stateful service maps to a volume you back up.
The documented minimums are a starting point for planning, and production load usually needs more. The platform is listed at 2 cores and at least 8 GB RAM, and the search engine at 2 cores, 8 GB RAM and 16 GB SSD. Set Compose memory and CPU limits so the search engine and the Node.js platform cannot starve each other, and remember that a search node's heap is only part of its memory footprint. Worker count also drives platform load, since the documentation recommends at least one platform node for every 3 workers, so adding workers means revisiting platform capacity.
- Platform floor. Start the platform container with no less than 2 cores and 8 GB RAM, and raise the limit if ingestion or UI response slows under real use.
- Search engine floor. Give the search container at least 8 GB RAM and set its heap as a share of that figure, following the search engine's own guidance for your version.
- Other dependencies. Set limits for Redis, RabbitMQ and the object store from their own requirements, and observe them under load before accepting the numbers.
- Worker scaling. Keep the ratio of at least one platform node per 3 workers in view, and add workers only when queue depth shows they are needed.
- Host capacity. Confirm the host or VM has enough RAM for the sum of all limits plus the operating system, because overcommitted limits cause restarts under pressure.
Run a load test on representative data before go-live, and record each limit you chose along with the test result that supports it.
Compose can restart a failed container and report whether a service is running, but it cannot tell whether OpenCTI is ingesting correctly unless you define checks. Give each stateful service a healthcheck that tests its own readiness, make dependent containers wait for healthy dependencies, and set a restart policy that recovers from crashes without hiding a fault. Confirm the platform's health endpoint path and response in the deployment documentation for your release before you rely on it in a check.
- Dependency readiness. Add healthchecks to the search engine, Redis, RabbitMQ and the object store, and use the healthy condition so the platform starts only after its dependencies pass.
- Platform check. Test the web endpoint on the port the platform serves, using the path confirmed for your release.
- Restart policy. Use
unless-stoppedfor long-running services so a host reboot brings them back without restarting services you stopped on purpose. - Crash loop visibility. Monitor restart counts and alert on repeated restarts, because a restart policy by itself can keep a faulty service running out of sight.
- Start period. Set a start period long enough for the search engine and platform to initialize on a cold start, so slow starts are not marked unhealthy.
After a test reboot of the host, run docker compose ps and confirm each service reports healthy, not only running.
How to move the Compose stack from trial to production
This sequence turns the official OpenCTI Compose trial into a deployment you can operate, with a pinned version, controlled secrets, durable data, sized resources, a TLS entry point and a verification pass that proves it works before users depend on it.
Pin the image to a release or LTS line
Replace any floating or 'latest' image tag in the compose file with a specific OpenCTI release, using the x.YYMMDD.z format for regular releases or the x.YYMMDD.z-lts.n format for an LTS line. The platform owner makes this choice and records it with the upgrade plan. Regular releases ship from daily to weekly, while LTS releases get only critical bug and security fixes after a one-month stabilization, so choose the line your team can keep current. Note that LTS images need a matching LTS license key. Done means every service image in the file is tagged explicitly and the tags are stored in version control.
Externalize secrets and environment values
Move the administrator token, the application encryption key, dependency passwords and any SSO client secrets out of the compose file and into an environment file or a secrets store that is not committed to source control. Restrict file permissions so only the deployment account can read them. Confirm that each dependency service, including Elasticsearch or OpenSearch, Redis, RabbitMQ and S3-compatible storage, uses its own credential rather than a shared default. Done means a clean repository checkout contains no secret values and the stack starts with the externalized values.
Define named volumes and backups for each data store
Replace anonymous or bind-mounted paths with named volumes or mounts on storage you control for the search index, object storage and queue data. Confirm the volume for each dependency survives a container recreate, and schedule a backup for the search cluster, the object store and the queue. Ask your storage team to confirm snapshot and retention support for the chosen backend. Done means a
docker compose downfollowed bydocker compose upkeeps existing platform data, and each backup job has a recorded schedule and destination.Set memory and CPU limits from the documented sizing
Apply resource limits to each service using the documented baseline: the platform needs 2 cores and at least 8 GB RAM, and Elasticsearch or OpenSearch needs 2 cores, 8 GB RAM and 16 GB of SSD storage. Add headroom for the other dependencies and for any connectors you run on the same host. Verify the host has enough capacity for the sum of limits, not just the baseline. Done means every service has explicit limits, the host passes a capacity check, and no container reports memory pressure under a normal load test.
Size the worker count against the platform nodes
Set the number of Python workers according to the documented ratio of at least one platform node for every 3 workers. Scale the worker count with the expected queue volume from your connectors, and review it when you add connectors or feeds. Workers consume RabbitMQ messages for asynchronous writes, so an undersized worker pool shows up as a growing backlog rather than an error. Done means the replica counts in the file match the ratio and the team has a written note of the number of connectors each worker pool serves.
Place a TLS-terminating proxy in front
Publish the platform only through a reverse proxy that terminates TLS, and leave the container port unexposed to the wider network. Configure the proxy for websocket traffic and the platform's context path, and set secure session cookie handling in the platform configuration. Your network or security team should confirm the certificate chain and the internal trust for connectors. Done means the platform is reachable only over HTTPS through the proxy, and direct requests to the container port fail from outside the host.
Run the verification pass before go-live
Work through five checks in order and record the result of each. First, log in with a local administrator and then with your chosen SSO method if it is configured. Second, run one connector and confirm it writes data. Third, watch the worker queues drain to zero after the run. Fourth, restart the stack and confirm data, sessions and connectors recover. Fifth, restore a backup into a separate environment and confirm the platform reads the restored data. Done means each check has a dated pass record, and any failure blocks go-live until it is fixed.
How many workers to run and when to add platform nodes
The number of workers you run should follow measured load, not a guess made at install time. Workers are the Python processes that consume RabbitMQ messages and perform the asynchronous writes behind every import, enrichment and connector action. The right worker count depends on three things: how much work your connectors generate, how deep the RabbitMQ queues grow under that work, and how many platform nodes you run relative to workers. OpenCTI's sizing guidance recommends at least one platform node for every 3 workers, so a stack with many workers and a single platform container is out of proportion before any queue data is even collected.
Before adding workers, watch the queues. Use the RabbitMQ management interface or its metrics endpoint to track the message count and consumer count for OpenCTI queues over several days, including during scheduled imports and busy enrichment periods. A queue that drains between bursts is healthy. A queue that climbs steadily while consumers stay busy is the signal to scale. Set the worker count in the docker-compose.yml file (or the .env values it reads) and restart only the worker service, then compare queue behavior afterward. Keep a record of each change so you can tie any improvement to a specific adjustment.
More workers can move the bottleneck rather than remove it. Each worker writes to Elasticsearch or OpenSearch and to the platform's backing services, so adding workers without enough search capacity usually shows up as slower indexing, rising search latency and failed writes instead of faster processing. Check search cluster heap use, indexing rates and disk headroom before and after each scale-up. Confirm current worker and sizing guidance against the release notes for your release line, since it changes between versions, and check the OpenCTI releases page before upgrading.
Security and operational risks of a Compose production stack
A Compose stack puts the platform, workers, and every dependency on one host or a small set of hosts, so a single misconfiguration can expose several services at once. The cards below cover the risks that most often survive from a trial setup into production, and what to check before go-live.
Exposed ports and network segmentation
The official stack publishes service ports by default, and Elasticsearch, Redis, RabbitMQ and MinIO do not need to be reachable from outside the Compose network. Publish only the platform through a reverse proxy with TLS, and confirm with docker compose ps and a scan from outside the host that dependency ports are not bound to the host interface. Review the published ports in the compose file on every change.
Secrets in Compose files
Administrator tokens, dependency passwords, and the platform encryption key often end up as plain values in docker-compose.yml or .env files committed to version control. Move them to Docker secrets, an external vault, or a file with restricted permissions, and confirm that the .env file is excluded from backups that leave the host. Plan a rotation procedure before you need one, because changing the encryption key later affects stored data.
Authentication strategy choices
Local users and LDAP are available in the Community Edition, but defining and using SSO strategies such as SAML or OpenID Connect requires the Enterprise Edition since 7.260224.0. Decide before go-live whether the platform will use local accounts, which need strict password policy and an admin account kept out of daily use, or an SSO strategy that needs an Enterprise license. Confirm the license scope with Filigran before you design the identity flow.
Authentication docsBackup and restore of volumes
A Compose stack keeps state in named volumes for Elasticsearch or OpenSearch, Redis, RabbitMQ, and MinIO. Copying the volume directory does not guarantee a consistent snapshot while services are writing. Test a full restore onto a second host, including the search indices and the S3 file store, and record how long it takes. A backup that has never been restored is not a control you can rely on.
Upgrade discipline and LTS license keys
Regular OpenCTI releases move quickly, while LTS releases are distributed as container images that require a specific LTS license key and receive only critical bug and security fixes after stabilization. Pin image tags in the compose file, read the release notes before each change, and confirm that your license covers the LTS line you run. Test each upgrade on a copy of the stack with a restored backup before it reaches production.
- LTS release cadence
- 6 months
Queue and disk monitoring
Workers consume RabbitMQ messages for asynchronous writes, so a growing queue or a stalled worker shows up as delayed data rather than an obvious outage. Watch queue depth, worker count, container restarts, memory pressure, and free disk on the volume that holds Elasticsearch or OpenSearch data. Set alerts before the disk fills, because search indices that run out of space can stop ingestion and are slow to recover.
Questions buyers ask before running OpenCTI in production on Compose
How much effort does a production Compose setup for OpenCTI take?
Effort depends mostly on how many services you run outside the default stack and how much hardening and evidence you need. The official stack bundles the platform, workers, connectors and dependencies such as Elasticsearch or OpenSearch, Redis, RabbitMQ and S3-compatible storage. Moving that into production means setting environment variables for each service, sizing memory and worker counts against your documented sizing, placing persistent volumes on storage you can back up, and configuring authentication and TLS. The documented sizing starts the platform at 2 cores and at least 8 GB RAM, and recommends at least one platform node for every 3 workers, so the count of workers you plan drives the size of the host. Ask any provider for a quote built from a written list of services, hosts, volumes and access requirements.
Can an in-house team run OpenCTI on Compose without outside help?
Yes, a team with container and Linux operations experience can deploy and run OpenCTI on Compose, and the official documentation covers the components. The harder part is the ongoing work: keeping dependency versions aligned with the platform, tuning search and queue resources under real ingestion load, testing backups and restores, and handling upgrades. Compose also has no built-in high availability, so the team must decide how it will recover a failed host. Check whether your team has someone who can own the stack after go-live, can read Elasticsearch or OpenSearch and RabbitMQ metrics, and can test a restore. An outside partner usually helps most with the initial build, hardening and documentation, then a retainer if you want continuing support.
What does the work need from our side?
The work needs infrastructure access, decisions and a named owner. Expect to provide hosts or cloud accounts where the stack will run, network paths to your identity provider and log destinations, and storage for backups. Decisions include how secrets are stored and injected, where backups go and how long they are kept, which authentication strategy users will sign in with, and whether the platform sits behind your reverse proxy. Every decision affects scope, so resolve them before the build starts. A single named owner on your side who can approve changes and sign off on test results keeps the schedule from stalling.
How long does a production Compose setup take, and why does it vary?
Duration varies with the number of hosts, the dependencies you run yourself versus use as managed services, the depth of security configuration, and how many environments you need, such as test, staging and production. Other drivers include how quickly your identity, storage and network teams respond, whether you need evidence for a compliance review, and how much data you migrate in. Single-sign-on work is a larger item because authentication strategies, including SSO, are an Enterprise Edition feature from OpenCTI 7.260224.0 onward, so licensing is part of the plan. Ask for a timeline in the written scope that lists these dependencies, rather than accepting a generic estimate.
When should we move from Docker Compose to Docker Swarm or Kubernetes?
Compose suits a single host or a small number of hosts where one team can restart services by hand. Move toward Swarm or Kubernetes when you need the platform and workers spread across nodes, automatic rescheduling after a host failure, rolling updates with less downtime, or scaling of workers on demand. Kubernetes also brings a community Helm chart and more mature tooling for secrets, ingress and policy, but it adds a control plane your team must run and patch. Choose based on the operational skills you have and the availability your users expect. The sibling guide on deploying OpenCTI on Kubernetes with Helm covers the trade-offs in more detail.
What happens to the Compose setup during a regular or LTS upgrade?
Each upgrade changes the platform image, and sometimes the dependency versions it expects, so the stack needs a tested change, not a simple image pull. OpenCTI uses date-based versions for regular releases, and LTS releases come every 6 months with each line supported for 1 year. LTS releases require a specific LTS license key, and after a one-month stabilization they receive only critical bug and security fixes. Plan a staging copy, a backup taken before the change, a check of the release notes for migration steps, and a rollback path. Ask any provider to price upgrades as a separate line in the scope, with a clear statement of which LTS line you will run.
What is the risk if we skip the production work and run the trial stack?
The official stack is built to get a platform running quickly, so its defaults are not a production baseline. Typical gaps include weak or default credentials, services exposed beyond the proxy, no tested backups of search indices, file storage and the message queue, no resource limits, and no monitoring of queues. Each gap can cause data loss, outages during ingestion spikes or unauthorized access to threat data. A written production scope lists these items, sets owners and includes a restore test, so the risk is visible before the platform holds real intelligence.
How DeployOpen scopes and delivers a production OpenCTI Compose deployment
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including OpenCTI. For a Compose-based deployment, we start from a written scope that sets out the services, dependencies, data flows and controls before any configuration changes are made.
How we scope
- Inventory the OpenCTI platform, workers, connectors and dependencies you intend to run in your environment
- Agree in writing which Elasticsearch or OpenSearch, Redis, RabbitMQ and S3-compatible storage components are in or out of scope
- Confirm the authentication model, including whether Enterprise Edition features such as SSO are required
How we build
- Configure the Compose stack with environment variables, persistent volumes, memory limits and worker counts agreed in the scope
- Size platform nodes against the worker count, using the documented ratio of at least one platform node for every three workers
- Test backup and restore, service restarts and access controls before the environment is accepted for use
How we hand over
- Document the deployed configuration, versions pinned, secrets locations and the reasons behind each sizing decision
- Provide runbooks for upgrades, including LTS and non-LTS release handling and the step order for dependency changes
- Walk your platform and security teams through the running system and record open items with owners
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer, sized to the scope you agree
- Review release notes and planned upgrades with your team before changes are applied to production
- Confirm with your team which reviews, monitoring and escalation paths the retainer should cover

