-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.53 KB
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
#
# Whitelist Manager — Containerized Test Environment
#
# This spins up a standalone Splunk Enterprise instance with the
# wl_manager app pre-installed, ready for testing.
#
# Usage:
# docker compose up -d # start Splunk
# docker compose logs -f # watch startup logs
# docker compose down -v # tear down + remove volumes
#
# Splunk Web will be available at: http://localhost:8000
# Username: admin
# Password: set SPLUNK_PASSWORD env var (default: Chang3d!)
#
services:
splunk:
image: splunk/splunk:9.3.1
container_name: wl_manager_test
hostname: splunk-test
environment:
SPLUNK_START_ARGS: "--accept-license"
SPLUNK_PASSWORD: "${SPLUNK_PASSWORD:-Chang3d!}"
SPLUNK_APPS_URL: ""
ports:
# Splunk Web UI
- "8000:8000"
# Splunk Management API (REST)
- "8089:8089"
# HEC (HTTP Event Collector) — useful for testing
- "8088:8088"
volumes:
# Mount only the app directories Splunk needs (not scripts/tests/docker).
# This avoids chown failures on non-app files.
- ./default:/opt/splunk/etc/apps/wl_manager/default
- ./bin:/opt/splunk/etc/apps/wl_manager/bin
- ./metadata:/opt/splunk/etc/apps/wl_manager/metadata
- ./lookups:/opt/splunk/etc/apps/wl_manager/lookups
- ./appserver:/opt/splunk/etc/apps/wl_manager/appserver
# Persist Splunk indexes across restarts so audit data survives
- splunk_var:/opt/splunk/var
restart: unless-stopped
volumes:
splunk_var:
name: wl_manager_splunk_var