Skip to content

Instantly share code, notes, and snippets.

@garanews
Created August 20, 2020 11:49
Show Gist options
  • Save garanews/fc517c033c176620a78f49a0902fb1d9 to your computer and use it in GitHub Desktop.
Save garanews/fc517c033c176620a78f49a0902fb1d9 to your computer and use it in GitHub Desktop.
docker compose for the hive 4
play.http.secret.key="Trvq8ZofCgSUvWBbQ4TFEaAtMQr7M3hks"
## For test only !
db.janusgraph {
storage.backend: berkeleyje
storage.directory: /data/
berkeleyje.freeDisk: 200
}
storage {
provider: localfs
localfs.directory: /opt/data
}
version: '2'
services:
thehive:
image: 'thehiveproject/thehive4:latest'
ports:
- '0.0.0.0:9000:9000'
volumes:
- application.conf:/etc/thehive/application.conf
- data:/data
@milesflo
Copy link

You could also use Cassandra by adding:

docker-compose.yml

services:
  cassandra:
    image: cassandra:3.11
    hostname: cassandra
    environment:
      - CASSANDRA_CLUSTER_NAME=thp
    volumes:
      - ./cassandra-data:/var/lib/cassandra/data

application.conf

# JanusGraph
db {
  provider: janusgraph
  janusgraph {
    storage {
      backend: cql
      hostname: "cassandra"

      cql {
        cluster-name: thp       # cluster name
        keyspace: thehive           # name of the keyspace
        read-consistency-level: ONE
        write-consistency-level: ONE
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment