-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocker-compose-withuf.yml
47 lines (45 loc) · 1.48 KB
/
docker-compose-withuf.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
# must accept EULA the first time that the image is started
# docker run splunk/splunk
# Options on how to review the EULA and accept it:
# 1. docker run -it splunk/splunk
# 2. Add the following environment variable: SPLUNK_START_ARGS=--accept-license
# e.g., docker run -e "SPLUNK_START_ARGS=--accept-license" splunk/splunk
# Support for Docker Compose, https://docs.docker.com/compose/overview/
version: '3'
services:
splunkenterprise:
#build: .
hostname: splunkenterprise
image: splunk/splunk:7.0.3-monitor
environment:
SPLUNK_START_ARGS: --accept-license --answer-yes
SPLUNK_ENABLE_LISTEN: 9997
SPLUNK_ADD: tcp 1514
volumes:
- vsplunk-opt-splunk-etc:/opt/splunk/etc
- vsplunk-opt-splunk-var:/opt/splunk/var
ports:
- "8000:8000"
- "9997:9997"
- "8088:8088"
- "1514:1514"
splunkuniversalforwarder:
# build: .
hostname: splunkuniversalforwarder
image: splunk/universalforwarder:7.0.3-monitor
environment:
SPLUNK_START_ARGS: --accept-license --answer-yes
SPLUNK_FORWARD_SERVER: splunkenterprise:9997
SPLUNK_USER: root
volumes:
- vsplunkuf-opt-splunk-etc:/opt/splunk/etc
- vsplunkuf-opt-splunk-var:/opt/splunk/var
- /var/lib/docker/containers:/host/containers:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
links:
- splunkenterprise
volumes:
vsplunk-opt-splunk-etc:
vsplunk-opt-splunk-var:
vsplunkuf-opt-splunk-etc:
vsplunkuf-opt-splunk-var: