Skip to content

Commit

Permalink
#4 Initial commit of docker-compose config
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Nov 23, 2020
1 parent 58c6ddb commit c35edb0
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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).
1 change: 1 addition & 0 deletions docker/cortex3-docker-neurons/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
job_directory=/tmp/cortex-jobs
13 changes: 13 additions & 0 deletions docker/cortex3-docker-neurons/README.md
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions docker/cortex3-docker-neurons/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit c35edb0

Please sign in to comment.