forked from sun-halo/docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.yml
57 lines (57 loc) · 2.04 KB
/
search.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
searchead01:
image: daocloud.io/buxiaomo/splunk:7.0.0
hostname: searchead01
environment:
- SPLUNK_START_ARGS=--accept-license --answer-yes
- SPLUNK_CMD_1=set servername searchead01 -auth admin:changeme
- SPLUNK_CMD_2=edit cluster-config -mode searchhead -master_uri https://10.3.236.31:8089 -secret admin
- SPLUNK_CMD_3=restart
networks:
splunk:
depends_on:
- splunkserver
volumes:
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
- /opt/splunk/var:/opt/splunk/var:rw
- /opt/splunk/etc:/opt/splunk/etc:rw
deploy:
mode: replicated
replicas: 0
update_config:
parallelism: 1
delay: 10s
placement:
constraints:
- node.hostname == splunk-searchead01
logging:
driver: json-file
options:
max-file: '3'
max-size: 100m
deployment:
image: daocloud.io/buxiaomo/splunk:7.0.0
hostname: deployment
environment:
- SPLUNK_START_ARGS=--accept-license --answer-yes
- SPLUNK_ENABLE_DEPLOY_SERVER=true
- SPLUNK_DEPLOYMENT_SERVER=10.3.236.31:8089
- SPLUNK_CMD_1=set servername deployment -auth admin:changeme
- SPLUNK_CMD_2=edit licenser-localslave -master_uri 'https://10.3.236.31:8089' -auth admin:changeme
- SPLUNK_CMD_3=restart
networks:
splunk:
depends_on:
- splunkserver
volumes:
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
- /opt/splunk/var:/opt/splunk/var:rw
- /opt/splunk/etc:/opt/splunk/etc:rw
deploy:
mode: replicated
replicas: 0
update_config:
parallelism: 1
delay: 10s
placement:
constraints:
- node.hostname == splunk-department