diff --git a/README.md b/README.md index 4b3169e..bcc6a29 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ This repository aims to be a location where TheHive and Cortex users can find an - OAuth Providers - Workflow and automation tools - Feeders + ## TODO The list bellow includes the docker-compose configurations to be done: @@ -24,5 +25,6 @@ The list bellow includes the docker-compose configurations to be done: - [ ] TheHive 4 + Cassandra - [ ] Cortex 3 + dockerized neurons - [ ] Cortex 3 + local neurons + # Contributing Please see our [Code of conduct](code_of_conduct.md). We welcome your contributions. Please feel free to fork the code, play with it, make some patches and send us pull requests via [issues](https://github.com/TheHive-Project/TheHive/issues). \ No newline at end of file diff --git a/docker/cortex3-docker-neurons/.env b/docker/cortex3-docker-neurons/.env new file mode 100644 index 0000000..02d8d0d --- /dev/null +++ b/docker/cortex3-docker-neurons/.env @@ -0,0 +1 @@ +job_directory=/tmp/cortex-jobs \ No newline at end of file diff --git a/docker/cortex3-docker-neurons/README.md b/docker/cortex3-docker-neurons/README.md new file mode 100644 index 0000000..1bdd788 --- /dev/null +++ b/docker/cortex3-docker-neurons/README.md @@ -0,0 +1,13 @@ +# cortex3-docker-neurons + +This is a minimal docker-compose configuration to run a Cortex instance with its Elasticsearch database. + +```bash +docker-compose up +``` + +## TODO + +- [ ] Configure volumes for app configuration +- [ ] Configure volumes for logs configuration +- [ ] Configure volumes for es7 configuration diff --git a/docker/cortex3-docker-neurons/docker-compose.yml b/docker/cortex3-docker-neurons/docker-compose.yml index e69de29..85f31b6 100644 --- a/docker/cortex3-docker-neurons/docker-compose.yml +++ b/docker/cortex3-docker-neurons/docker-compose.yml @@ -0,0 +1,21 @@ +version: "2" +services: + elasticsearch: + image: elasticsearch:7.8.1 + environment: + - http.host=0.0.0.0 + - discovery.type=single-node + - script.allowed_types=inline + - thread_pool.search.queue_size=100000 + - thread_pool.write.queue_size=10000 + cortex: + image: thehiveproject/cortex:3.1.0-1 + environment: + - job_directory=${job_directory} + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - ${job_directory}:${job_directory} + depends_on: + - elasticsearch + ports: + - "0.0.0.0:9001:9001" \ No newline at end of file