Deploy OpenCTI

OpenCTI threat intelligence platform: full stack with 10 connectors

Deploy OpenCTI

Connector MITRE ATT&CK

aalfath/opencti-railway-template

Just deployed

Just deployed

Connector Document Analysis

aalfath/opencti-railway-template

Just deployed

/var/lib/rabbitmq

Just deployed

Just deployed

/usr/share/elasticsearch/data

Just deployed

/data

Connector OpenCTI Datasets

aalfath/opencti-railway-template

Just deployed

Connector Import Document

aalfath/opencti-railway-template

Just deployed

Just deployed

Connector External Reference

aalfath/opencti-railway-template

Just deployed

Just deployed

/data

Just deployed

Deploy and Host OpenCTI on Railway

OpenCTI is an open-source (Apache-2.0) cyber threat intelligence platform by Filigran. It stores threat actors, malware, attack patterns, indicators, reports and their relationships as a STIX 2.1 knowledge graph, and imports, enriches and shares that data through connectors, a GraphQL API and a web UI with dashboards and investigations.

About Hosting OpenCTI

OpenCTI needs several cooperating services: the platform (UI and API), Elasticsearch for the knowledge graph, Redis for caching and event streams, RabbitMQ for work queues, S3-compatible storage for files, and workers that write ingested data. This template runs OpenCTI 7.261119.0 with that full stack as 16 Railway services wired over the private network. Every stateful service keeps its data on its own volume, all passwords and tokens are generated at deploy, and the platform and connectors wait for their dependencies, so the stack comes up in the right order. The first start takes about 5 to 10 minutes while the platform creates its indexes.

Common Use Cases

  • Build a shared knowledge base of threat actors, campaigns, malware and indicators for a security team
  • Import MITRE ATT&CK, STIX bundles, PDF reports and YARA rules, then link and enrich them
  • Export curated intelligence as STIX, CSV or plain text for SIEMs, firewalls and partners

Dependencies for OpenCTI Hosting

  • Elasticsearch 8, Redis, RabbitMQ and S3-compatible object storage (all included)
  • About 8 GB of RAM across the stack; Elasticsearch and the platform use most of it

Deployment Dependencies

Implementation Details

Services in this template:

  • OpenCTI (public): the platform, web UI and GraphQL API on port 8080. Railway's health check uses /health on PORT 8081, a small relay that calls OpenCTI's health endpoint with the generated APP__HEALTH_ACCESS_KEY, so the key stays secret.
  • Worker: writes the data that connectors queue in RabbitMQ into the platform.
  • Elasticsearch (volume): the knowledge graph store, single node, password protected.
  • Redis (volume): cache, locks and the live event stream.
  • RabbitMQ (volume): queues between the platform, the worker and the connectors.
  • Silo (volume): S3-compatible storage for uploaded and exported files (the MinIO fork OpenCTI's own docker-compose uses).
  • 10 connectors, the set from OpenCTI's docker-compose: Export STIX, Export CSV, Export TXT, Import STIX, Import Document, Document Analysis, Import YARA, External Reference, OpenCTI Datasets (sectors, countries, regions) and MITRE ATT&CK.

After deploy:

  1. Wait until the OpenCTI service is healthy, then open its public URL.
  2. Sign in as admin@opencti.io with the password in the OpenCTI service's APP__ADMIN__PASSWORD variable (generated at deploy). Change the email and password under your profile.
  3. The OpenCTI Datasets and MITRE ATT&CK connectors load their data in the background during the first hour.

To add another connector from the OpenCTI catalog, add a service from its official image with OPENCTI_URL and OPENCTI_TOKEN set as on the existing connectors, plus its own CONNECTOR_ID (a new UUID). To scale ingestion, raise the Worker service's replicas. Optional features such as SMTP or SSO are set with OpenCTI's own variables on the OpenCTI service (see the OpenCTI documentation).

Updates: this template builds from the GitHub repo above, so when the pinned version is bumped, Railway shows an "update available" notice on your project and you choose when to apply it. Read CHANGELOG.md in the repo first.

Why Deploy OpenCTI on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying OpenCTI on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0