forked from MathieM/docker-moloch
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
95 lines (88 loc) · 3.12 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
services:
os01:
image: opensearchproject/opensearch:$OS_VERSION
ulimits:
nofile:
soft: 65535
hard: 65535
memlock:
soft: -1
hard: -1
container_name: $OS_NODE1
environment:
- node.name=$OS_NODE1
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms$OS_JAVA_MEM -Xmx$OS_JAVA_MEM"
- DISABLE_SECURITY_PLUGIN=true
- DISABLE_INSTALL_DEMO_CONFIG=true
# comment this if an OS cluster should be created
- discovery.type=single-node
# uncomment this if an OS cluster should be created
# also add other OS node containers to this compose file
# - cluster.name=os-arkime-cluster
# - cluster.initial_cluster_manager_nodes=$OS_NODE1
# this variable must contain the names (comma-separated) of the OTHER (excluding this container) OS node containers that are part of the cluster
# - discovery.seed_hosts=$OS_NODE2
volumes:
- os01_data:/usr/share/opensearch/data
networks:
- arkime-os
# uncomment to add another OS node container and create a cluster
# additional some modifications to the "environment" section of the os01 container must be made
# os02:
# image: opensearchproject/opensearch:$OS_VERSION
# ulimits:
# nofile:
# soft: 65535
# hard: 65535
# memlock:
# soft: -1
# hard: -1
# container_name: $OS_NODE2
# environment:
# - node.name=$OS_NODE2
# - bootstrap.memory_lock=true
# - "OPENSEARCH_JAVA_OPTS=-Xms$OS_JAVA_MEM -Xmx$OS_JAVA_MEM"
# - DISABLE_SECURITY_PLUGIN=true
# - DISABLE_INSTALL_DEMO_CONFIG=true
# # cluster settings
# - cluster.name=os-arkime-cluster
# # this variable must contain the names (comma-separated) of the OTHER (excluding this container) OS node containers that are part of the cluster
# - discovery.seed_hosts=$OS_NODE1
# volumes:
# - os02_data:/usr/share/opensearch/data
# networks:
# - arkime-os
arkime:
build:
context: .
dockerfile: Dockerfile
depends_on:
- $OS_NODE1
# uncomment and add all OS node container names
# - $OS_NODE2
env_file:
- path: ./env/arkime-compose.env
# defaults to values defined in Dockerfile
required: false
environment:
- OS_HOST=$OS_NODE1
- OS_PORT=9200
ports:
- $ARKIME_PORT:8005
volumes:
- arkime_config:/data/config
- arkime_logs:/data/logs
- type: bind
source: $PCAP_DIR
target: /data/pcap
networks:
- arkime-os
volumes:
arkime_config:
arkime_logs:
os01_data:
# add a volume foreach OS node container
# os02_data:
networks:
arkime-os: