Description
According to the document of "Using Docker(https://www.notion.so/Using-Docker-03d5c0592b9d4547800cc9f4ff7be2b8)" to deploy OpenCTI, I copied ".env.sample" to ".env" and modify the relevant parameters.
Then, I used single node Docker to deploy by command "$sudo docker-compose up -d".
By command "sudo docker-compose ps -a",the results show as follows:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
433b7c6ace35 opencti/connector-export-file-csv:4.0.5 "/entrypoint.sh" 39 seconds ago Up 4 seconds docker_connector-export-file-csv_1
9287365271c5 opencti/connector-import-file-pdf-observables:4.0.5 "/entrypoint.sh" 41 seconds ago Up 4 seconds docker_connector-import-file-pdf-observables_1
d0ef66e7300c opencti/connector-import-file-stix:4.0.5 "/entrypoint.sh" 42 seconds ago Up 7 seconds docker_connector-import-file-stix_1
339de3bf181d opencti/connector-export-file-stix:4.0.5 "/entrypoint.sh" 42 seconds ago Up 7 seconds docker_connector-export-file-stix_1
2f7b1ac8b701 opencti/worker:4.0.5 "/entrypoint.sh" 50 seconds ago Restarting (1) 13 seconds ago docker_worker_1
5dd98503d0fa opencti/connector-history:4.0.5 "/entrypoint.sh" 50 seconds ago Restarting (1) 13 seconds ago docker_connector-history_1
b79aa7783036 opencti/platform:4.0.5 "/entrypoint.sh" About an hour ago Restarting (1) 37 seconds ago docker_opencti_1
aa563a1e934d rabbitmq:3.8-management "docker-entrypoint.s…" 2 hours ago Up 2 hours 4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 15691-15692/tcp, 25672/tcp docker_rabbitmq_1
9eccf21ff2eb docker.elastic.co/elasticsearch/elasticsearch:7.10.1 "/tini -- /usr/local…" 2 hours ago Up 2 hours 9200/tcp, 9300/tcp docker_elasticsearch_1
af07e9466f01 redis:6.0.9 "docker-entrypoint.s…" 2 hours ago Up 2 hours 6379/tcp docker_redis_1
9b18cbec6593 minio/minio:RELEASE.2020-12-12T08-39-07Z "/usr/bin/docker-ent…" 2 hours ago Up 2 hours (healthy) 0.0.0.0:9000->9000/tcp docker_minio_1
The status of container "opencti/worker:4.0.5", "opencti/connector-history:4.0.5" and "opencti/platform:4.0.5" are "Restaring".
The logs of container "opencti/platform:4.0.5 " show "[OPENCTI] Platform initialization fail", as follow.
yarn run v1.19.1
$ node --max_old_space_size=8192 build/index.js
{"level":"info","message":"[OPENCTI] Starting platform","timestamp":"2021-01-13T03:14:40.246Z"}
{"level":"info","message":"[CHECK] ElasticSearch is alive","timestamp":"2021-01-13T03:14:40.275Z"}
{"error":{},"level":"error","message":"[OPENCTI] Platform initialization fail","timestamp":"2021-01-13T03:14:40.278Z"}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Can you help me with this problem? I used the latest vestion 4.0.6.
According to the previous questions in Issues, I had modify " - APP__LOGS_LEVEL=error" to " - APP__LOGS_LEVEL=info" in "docker-compose.yml" file, but it is invalid.
I also modify "- ELASTICSEARCH__URL=http://elasticsearch:9200", "- OPENCTI_URL=http://opencti:8080" to "- ELASTICSEARCH__URL=http://localhost:9200", "- OPENCTI_URL=http://localhost:8080" or "- ELASTICSEARCH__URL=http://192.168.7.108:9200", "- OPENCTI_URL=http://192.168.7.108:8080", It is still invalid.
How can I set the parameters and environment?