This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 449
/
docker-compose.setup.yml
128 lines (120 loc) · 5.08 KB
/
docker-compose.setup.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
version: '3.6'
services:
# Setup Elasticsearch
# * keystore
# * SSL
setup_elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${TAG}
container_name: setup_elasticsearch
command: ['/bin/bash', '-c', 'cat /usr/local/bin/setup-elasticsearch.sh | tr -d "\r" | bash']
environment: ['ELASTIC_PASSWORD=${ELASTIC_PASSWORD}']
working_dir: '/config'
volumes:
- './config:/config'
- './scripts/setup-elasticsearch.sh:/usr/local/bin/setup-elasticsearch.sh:ro'
setup_kibana:
image: docker.elastic.co/kibana/kibana:${TAG}
container_name: setup_kibana
command: ['/bin/bash', '-c', 'cat /usr/local/bin/setup-kibana.sh | tr -d "\r" | bash']
environment: ['ELASTIC_PASSWORD=${ELASTIC_PASSWORD}']
working_dir: '/config'
volumes:
- './config:/config'
- './scripts/setup-kibana.sh:/usr/local/bin/setup-kibana.sh:ro'
- './config/ssl/ca/ca.crt:/usr/share/kibana/config/ca/ca.crt'
depends_on: ['elasticsearch']
networks: ['stack']
setup_logstash:
image: docker.elastic.co/logstash/logstash:${TAG}
container_name: setup_logstash
command: ['/bin/bash', '-c', 'cat /usr/local/bin/setup-logstash.sh | tr -d "\r" | bash']
environment: ['ELASTIC_PASSWORD=${ELASTIC_PASSWORD}']
working_dir: '/config'
volumes:
- './config:/config'
- './scripts/setup-logstash.sh:/usr/local/bin/setup-logstash.sh:ro'
- './config/ssl/ca/ca.crt:/usr/share/logstash/config/ca/ca.crt'
depends_on: ['elasticsearch']
networks: ['stack']
setup_auditbeat:
image: docker.elastic.co/beats/auditbeat:${TAG}
container_name: setup_auditbeat
user: root
pid: host
cap_add: ['AUDIT_CONTROL', 'AUDIT_READ']
volumes:
- './config:/config'
- './scripts/setup-beat.sh:/usr/local/bin/setup-beat.sh:ro'
- './config/auditbeat/auditbeat.yml:/usr/share/auditbeat/auditbeat.yml'
- './config/ssl/ca/ca.crt:/usr/share/auditbeat/certs/ca/ca.crt'
command: ['/bin/bash', '-c', 'cat /usr/local/bin/setup-beat.sh | tr -d "\r" | bash -s auditbeat']
environment: ['ELASTIC_PASSWORD=${ELASTIC_PASSWORD}']
networks: ['stack']
depends_on: ['kibana']
setup_filebeat:
image: docker.elastic.co/beats/filebeat:${TAG}
container_name: setup_filebeat
user: root
volumes:
- './config:/config'
- './scripts/setup-beat.sh:/usr/local/bin/setup-beat.sh:ro'
- './config/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml'
- './config/ssl/ca/ca.crt:/usr/share/filebeat/certs/ca/ca.crt'
command: ['/bin/bash', '-c', 'cat /usr/local/bin/setup-beat.sh | tr -d "\r" | bash -s filebeat']
environment: ['ELASTIC_PASSWORD=${ELASTIC_PASSWORD}']
networks: ['stack']
depends_on: ['kibana']
setup_heartbeat:
image: docker.elastic.co/beats/heartbeat:${TAG}
container_name: setup_heartbeat
user: root
volumes:
- './config:/config'
- './scripts/setup-beat.sh:/usr/local/bin/setup-beat.sh:ro'
- './config/heartbeat/heartbeat.yml:/usr/share/heartbeat/heartbeat.yml'
- './config/ssl/ca/ca.crt:/usr/share/heartbeat/certs/ca/ca.crt'
command: ['/bin/bash', '-c', 'cat /usr/local/bin/setup-beat.sh | tr -d "\r" | bash -s heartbeat']
environment: ['ELASTIC_PASSWORD=${ELASTIC_PASSWORD}']
networks: ['stack']
depends_on: ['kibana']
setup_metricbeat:
image: docker.elastic.co/beats/metricbeat:${TAG}
container_name: setup_metricbeat
user: root
volumes:
- './config:/config'
- './scripts/setup-beat.sh:/usr/local/bin/setup-beat.sh:ro'
- './config/metricbeat/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml'
- './config/ssl/ca/ca.crt:/usr/share/metricbeat/certs/ca/ca.crt'
command: ['/bin/bash', '-c', 'cat /usr/local/bin/setup-beat.sh | tr -d "\r" | bash -s metricbeat']
environment: ['ELASTIC_PASSWORD=${ELASTIC_PASSWORD}']
networks: ['stack']
depends_on: ['kibana']
setup_packetbeat:
image: docker.elastic.co/beats/packetbeat:${TAG}
container_name: setup_packetbeat
user: root
cap_add: ['NET_RAW', 'NET_ADMIN']
command: ['/bin/bash', '-c', 'cat /usr/local/bin/setup-beat.sh | tr -d "\r" | bash -s packetbeat']
volumes:
- './config:/config'
- './scripts/setup-beat.sh:/usr/local/bin/setup-beat.sh:ro'
- './config/packetbeat/packetbeat.yml:/usr/share/packetbeat/packetbeat.yml'
- './config/ssl/ca/ca.crt:/usr/share/packetbeat/certs/ca/ca.crt'
environment: ['ELASTIC_PASSWORD=${ELASTIC_PASSWORD}']
networks: ['stack']
depends_on: ['kibana']
setup_apm_server:
image: docker.elastic.co/apm/apm-server:${TAG}
container_name: setup_apm_server
user: root
command: ['/bin/bash', '-c', 'cat /usr/local/bin/setup-beat.sh | tr -d "\r" | bash -s apm-server']
volumes:
- './config:/config'
- './scripts/setup-beat.sh:/usr/local/bin/setup-beat.sh:ro'
- './config/apm-server/apm-server.yml:/usr/share/apm-server/apm-server.yml'
- './config/ssl/ca/ca.crt:/usr/share/apm-server/certs/ca/ca.crt'
environment: ['ELASTIC_PASSWORD=${ELASTIC_PASSWORD}']
networks: ['stack']
depends_on: ['kibana']