---
title: "Deploy OpenCTI"
description: "OpenCTI threat intelligence platform: full stack with 10 connectors"
category: "Other"
url: https://railway.com/deploy/opencti
---

# Deploy OpenCTI

OpenCTI threat intelligence platform: full stack with 10 connectors

**[Deploy OpenCTI on Railway](https://railway.com/template/opencti)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/opencti/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### Worker https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/opencti.png

- **Source:** https://github.com/aalfath/opencti-railway-template

### Connector MITRE ATT&CK https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/opencti.png

- **Source:** https://github.com/aalfath/opencti-railway-template

### Connector Import YARA https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/opencti.png

- **Source:** https://github.com/aalfath/opencti-railway-template

### Connector Document Analysis https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/opencti.png

- **Source:** https://github.com/aalfath/opencti-railway-template

### RabbitMQ https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/rabbitmq.png

- **Source:** https://github.com/aalfath/opencti-railway-template

### Connector Export STIX https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/opencti.png

- **Source:** https://github.com/aalfath/opencti-railway-template

### Elasticsearch https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/elasticsearch.png

- **Source:** https://github.com/aalfath/opencti-railway-template
- **Health check:** /_cluster/health

### Connector Import STIX https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/opencti.png

- **Source:** https://github.com/aalfath/opencti-railway-template

### Silo https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/minio.png

- **Source:** https://github.com/aalfath/opencti-railway-template
- **Health check:** /minio/health/live

### Connector OpenCTI Datasets https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/opencti.png

- **Source:** https://github.com/aalfath/opencti-railway-template

### Connector Import Document https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/opencti.png

- **Source:** https://github.com/aalfath/opencti-railway-template

### Connector Export CSV https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/opencti.png

- **Source:** https://github.com/aalfath/opencti-railway-template

### Connector External Reference https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/opencti.png

- **Source:** https://github.com/aalfath/opencti-railway-template

### OpenCTI https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/opencti.png

- **Source:** https://github.com/aalfath/opencti-railway-template
- **Health check:** /health
- **Public domain:** Yes

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Connector Export TXT https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/opencti.png

- **Source:** https://github.com/aalfath/opencti-railway-template

## Documentation

# 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&amp;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

* OpenCTI source: https://github.com/OpenCTI-Platform/opencti
* OpenCTI documentation: https://docs.opencti.io
* Template repo: https://github.com/aalfath/opencti-railway-template

### 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&amp;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&amp;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.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/opencti
