File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed
Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -13,5 +13,7 @@ CONNECTOR_EXPORT_FILE_TXT_ID=ca715d9c-bd64-4351-91db-33a8d728a58b
1313CONNECTOR_IMPORT_FILE_STIX_ID = 72327164-0b35-482b-b5d6-a5a3f76b845f
1414CONNECTOR_IMPORT_DOCUMENT_ID = c3970f8a-ce4b-4497-a381-20b7256f56f0
1515CONNECTOR_ANALYSIS_ID = 4dffd77c-ec11-4abe-bca7-fd997f79fa36
16+ XTM_COMPOSER_ID = 8215614c-7139-422e-b825-b20fd2a13a23
1617SMTP_HOSTNAME = localhost
1718ELASTIC_MEMORY_SIZE = 4G
19+ COMPOSE_PROJECT_NAME = opencti
Original file line number Diff line number Diff line change 11services :
2+ # Generate RSA key for xtm-composer (PKCS#8 format)
3+ rsa-key-generator :
4+ image : alpine/openssl:3.5.2
5+ volumes :
6+ - rsakeys:/keys
7+ entrypoint : ["/bin/ash"]
8+ command : ["-c", "if [ ! -f /keys/private_key.pem ]; then openssl genpkey -algorithm RSA -out /keys/private_key.pem -pkeyopt rsa_keygen_bits:4096; fi && tail -f /dev/null"]
9+ healthcheck :
10+ test : ["CMD", "test", "-f", "/keys/private_key.pem"]
11+ interval : 10s
12+ timeout : 5s
13+ retries : 3
14+ restart : always
215 redis :
316 image : redis:8.2.1
417 restart : always
@@ -221,10 +234,33 @@ services:
221234 depends_on :
222235 opencti :
223236 condition : service_healthy
237+ xtm-composer :
238+ image : filigran/xtm-composer:1.0.0
239+ platform : linux/amd64
240+ environment :
241+ - MANAGER__ID=${XTM_COMPOSER_ID}
242+ - MANAGER__NAME=OpenCTI Connector Manager
243+ - MANAGER__CREDENTIALS_KEY_FILEPATH=/keys/private_key.pem
244+ - OPENCTI__ENABLE=true
245+ - OPENCTI__URL=http://opencti:8080
246+ - OPENCTI__TOKEN=${OPENCTI_ADMIN_TOKEN}
247+ - OPENCTI__DAEMON__SELECTOR=docker
248+ - OPENCTI__DAEMON__DOCKER__NETWORK_MODE=${COMPOSE_PROJECT_NAME}_default
249+ volumes :
250+ - /var/run/docker.sock:/var/run/docker.sock
251+ - rsakeys:/keys:ro # RSA key mounted as read-only
252+ depends_on :
253+ rsa-key-generator :
254+ condition : service_healthy
255+ opencti :
256+ condition : service_healthy
257+ rabbitmq :
258+ condition : service_healthy
259+ restart : always
224260
225261volumes :
226262 esdata :
227263 s3data :
228264 redisdata :
229265 amqpdata :
230-
266+ rsakeys :
You can’t perform that action at this time.
0 commit comments