-
Notifications
You must be signed in to change notification settings - Fork 90
/
docker-compose.yml
95 lines (95 loc) · 2.72 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '3.8'
services:
elasticsearch:
image: 'elasticsearch:7.11.1'
container_name: elasticsearch
restart: unless-stopped
ports:
- '0.0.0.0:9200:9200'
environment:
- http.host=0.0.0.0
- discovery.type=single-node
- cluster.name=hive
- script.allowed_types= inline
- thread_pool.search.queue_size=100000
- thread_pool.write.queue_size=10000
- gateway.recover_after_nodes=1
- xpack.security.enabled=false
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms256m -Xmx256m
ulimits:
nofile:
soft: 65536
hard: 65536
volumes:
- './vol/elasticsearch/data:/usr/share/elasticsearch/data'
- './vol/elasticsearch/logs:/usr/share/elasticsearch/logs'
cortex:
image: 'thehiveproject/cortex:latest'
container_name: cortex
restart: unless-stopped
command:
--job-directory ${JOB_DIRECTORY}
environment:
- 'JOB_DIRECTORY=${JOB_DIRECTORY}'
volumes:
- './vol/cortex/application.conf:/etc/cortex/application.conf'
- '${JOB_DIRECTORY}:${JOB_DIRECTORY}'
- '/var/run/docker.sock:/var/run/docker.sock'
depends_on:
- elasticsearch
ports:
- '0.0.0.0:9001:9001'
postgres:
image: postgres
container_name: PostgresDB
restart: unless-stopped
environment:
- 'POSTGRES_USER=${POSTGRES_USER}'
- 'POSTGRES_PASSWORD=${POSTGRES_PASSWORD}'
- 'POSTGRES_DB=${POSTGRES_DB}'
volumes:
- './vol/postgres/data:/var/lib/postgresql/data'
networks:
- n8n-net
n8n:
image: n8nio/n8n
container_name: n8n
restart: unless-stopped
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- 'DB_POSTGRESDB_DATABASE=${POSTGRES_DB}'
- 'DB_POSTGRESDB_USER=${POSTGRES_USER}'
- 'DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}'
- 'N8N_BASIC_AUTH_ACTIVE=${N8N_BASIC_AUTH_ACTIVE}'
- 'N8N_BASIC_AUTH_USER=${N8N_BASIC_AUTH_USER}'
- 'N8N_BASIC_AUTH_PASSWORD=${N8N_BASIC_AUTH_PASSWORD}'
ports:
- '0.0.0.0:5678:5678'
links:
- postgres
volumes:
- './vol/n8n/.n8n:/root/.n8n'
- './vol/n8n/workflows:/opt/workflows'
networks:
- n8n-net
- default
command: n8n start
thehive:
image: 'thehiveproject/thehive4:latest'
container_name: 'thehive4'
ports:
- '0.0.0.0:9000:9000'
volumes:
- './vol/thehive/application.conf:/etc/thehive/application.conf'
- './vol/thehive/db:/opt/thp/thehive/db'
- './vol/thehive/data:/opt/thp/thehive/data'
- './vol/thehive/index:/opt/thp/thehive/index'
networks:
- default
command: '--no-config --no-config-secret'
networks:
n8n-net: null
default: null