Running OpenCTI in production with Docker Compose

The official OpenCTI Compose stack is a good starting point, but production needs deliberate choices on persistence, sizing, secrets, worker count and when to move to Swarm or Kubernetes.

On this page

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.

OptionWhen it fitsWhat the team ownsMain trade-off
Stock Compose file with overridesA pilot or small team that wants the official stack with minimal divergence from the documented layoutEnvironment variables, volume backups, image pins and upgrade runs against the official fileFast to start, but a single host is a single point of failure and limits how you scale workers
Compose on a single hardened hostA single-site team that accepts one host and needs host hardening, TLS termination and tested restoresHost OS patching, firewall rules, secrets handling, memory limits and worker count tuningSimple to operate, but the host must be sized for platform, search, queue, storage and workers together
Docker Swarm across hostsA team that wants to place services on several hosts without adopting KubernetesOverlay networking, placement constraints, stateful service storage and node replacementSpreads load across hosts, but Swarm has a smaller ecosystem and stateful dependencies need careful placement
KubernetesMultiple environments, formal change control or an existing cluster platform teamCluster lifecycle, ingress, persistent volumes, Helm or manifests, and a monitored upgrade planStrongest scaling and recovery options, with the highest operational skill requirement
Compose for dependencies, managed services where allowedTeams that want Elasticsearch or OpenSearch, Redis, RabbitMQ and S3 storage run by a managed or separate serviceConnectivity, credentials, backups and version compatibility with the managed serviceReduces 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 .gitignore and 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.

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.

  1. 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.

  2. 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.

  3. 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 down followed by docker compose up keeps existing platform data, and each backup job has a recorded schedule and destination.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

Deployment overview

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 docs

Backup 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
Product life cycle

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

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.