-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
155 lines (148 loc) · 4.86 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
version: "3.6"
networks:
traefik_net:
driver: overlay
attachable: true
services:
traefik:
image: traefik:latest
deploy:
placement:
constraints:
- node.labels.traefik-public.traefik-public-certificates == true
command:
- --configFile=/etc/traefik/traefik.yml
ports:
- 80:80
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /opt/docker/traefik:/etc/traefik:ro
networks:
- traefik_net
search01:
networks:
traefik_net:
aliases:
- search01
image: splunk/splunk:8.2.4
hostname: search01
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.search.entrypoints=web
- traefik.http.routers.search.rule=Host(`search.rskdev.io`)
- traefik.http.routers.search.service=search@docker
- traefik.http.services.search.loadbalancer.server.port=8000
- traefik.http.services.search.loadbalancer.sticky=true
- traefik.http.services.search.loadbalancer.sticky.cookie.name=rskdev-session-token
# - traefik.http.services.search.loadbalancer.sticky.cookie.secure=true
environment:
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_INDEXER_URL=index01
- SPLUNK_SEARCH_HEAD_URL=search02,search03
- SPLUNK_SEARCH_HEAD_CAPTAIN_URL=search01
- SPLUNK_ROLE=splunk_search_head_captain
- SPLUNK_DEPLOYER_URL=deployer
ports:
- 8000
- 8089
volumes:
- /opt/docker/splunk/default.yml:/tmp/defaults/default.yml
search02:
networks:
traefik_net:
aliases:
- search02
image: splunk/splunk:8.2.4
hostname: search02
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.search.entrypoints=web
- traefik.http.routers.search.rule=Host(`search.rskdev.io`)
- traefik.http.routers.search.service=search@docker
- traefik.http.services.search.loadbalancer.server.port=8000
- traefik.http.services.search.loadbalancer.sticky=true
- traefik.http.services.search.loadbalancer.sticky.cookie.name=rskdev-session-token
# - traefik.http.services.search.loadbalancer.sticky.cookie.secure=true
environment:
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_INDEXER_URL=index01
- SPLUNK_SEARCH_HEAD_URL=search02,search03
- SPLUNK_SEARCH_HEAD_CAPTAIN_URL=search01
- SPLUNK_ROLE=splunk_search_head
- SPLUNK_DEPLOYER_URL=deployer
ports:
- 8000
- 8089
volumes:
- /opt/docker/splunk/default.yml:/tmp/defaults/default.yml
search03:
networks:
traefik_net:
aliases:
- search03
image: splunk/splunk:8.2.4
hostname: search03
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.search.entrypoints=web
- traefik.http.routers.search.rule=Host(`search.rskdev.io`)
- traefik.http.routers.search.service=search@docker
- traefik.http.services.search.loadbalancer.server.port=8000
- traefik.http.services.search.loadbalancer.sticky=true
- traefik.http.services.search.loadbalancer.sticky.cookie.name=rskdev-session-token
# - traefik.http.services.search.loadbalancer.sticky.cookie.secure=true
environment:
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_INDEXER_URL=index01
- SPLUNK_SEARCH_HEAD_URL=search02,search03
- SPLUNK_SEARCH_HEAD_CAPTAIN_URL=search01
- SPLUNK_ROLE=splunk_search_head
- SPLUNK_DEPLOYER_URL=deployer
ports:
- 8000
- 8089
volumes:
- /opt/docker/splunk/default.yml:/tmp/defaults/default.yml
deployer:
networks:
traefik_net:
aliases:
- deployer
image: splunk/splunk:8.2.4
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.deployer.entrypoints=web
- traefik.http.routers.deployer.rule=Host(`deployer.rskdev.io`)
- traefik.http.routers.deployer.service=deployer@docker
- traefik.http.services.deployer.loadbalancer.server.port=8000
hostname: deployer
environment:
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_INDEXER_URL=index01
- SPLUNK_SEARCH_HEAD_URL=search02,search03
- SPLUNK_SEARCH_HEAD_CAPTAIN_URL=search01
- SPLUNK_ROLE=splunk_deployer
- SPLUNK_DEPLOYER_URL=deployer
volumes:
- /opt/docker/splunk/default.yml:/tmp/defaults/default.yml
index01:
networks:
traefik_net:
aliases:
- index01
image: splunk/splunk:8.2.4
hostname: index01
environment:
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_INDEXER_URL=index01
- SPLUNK_SEARCH_HEAD_URL=search02,search03
- SPLUNK_SEARCH_HEAD_CAPTAIN_URL=search01
- SPLUNK_ROLE=splunk_indexer
- SPLUNK_DEPLOYER_URL=deployer
volumes:
- /opt/docker/splunk/default.yml:/tmp/defaults/default.yml