-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.examples.yml
More file actions
185 lines (172 loc) · 5.7 KB
/
docker-compose.examples.yml
File metadata and controls
185 lines (172 loc) · 5.7 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
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Example Docker Compose configurations for different use cases
services:
# Example 1: Development/Testing Setup
# Generates lower volume of traffic with debug logging
traffic-forge-dev:
image: ghcr.io/skyhighsecurity/traffic-forge:latest
container_name: traffic-forge-dev
volumes:
- ./config-dev:/etc/skyhigh-traffic-forge
- ./logs-dev:/var/log/skyhigh-traffic-forge
environment:
SKYHIGH_LOG_LEVEL: "DEBUG"
SKYHIGH_USER_COUNT: "100"
SKYHIGH_EVENTS_PER_MINUTE: "1000"
SKYHIGH_LOG_FORMAT: "json" # Easier to parse in dev
command: generate --mode realtime
profiles: ["dev"]
# Example 2: High-Volume Production
# Optimized for high throughput
traffic-forge-prod:
image: ghcr.io/skyhighsecurity/traffic-forge:latest
container_name: traffic-forge-prod
volumes:
- ./config-prod:/etc/skyhigh-traffic-forge:ro # Read-only config
- ./logs-prod:/var/log/skyhigh-traffic-forge
environment:
SKYHIGH_LOG_LEVEL: "WARNING"
SKYHIGH_USER_COUNT: "50000"
SKYHIGH_EVENTS_PER_MINUTE: "100000"
SKYHIGH_WORKER_THREADS: "8"
SKYHIGH_BATCH_SIZE: "5000"
SKYHIGH_LOG_FORMAT: "splunk"
command: generate --mode realtime
deploy:
resources:
limits:
cpus: '4.0'
memory: 4G
profiles: ["prod"]
# Example 3: Historical Data Generation
# Generate 1 year of historical data
traffic-forge-historical:
image: ghcr.io/skyhighsecurity/traffic-forge:latest
container_name: traffic-forge-historical
volumes:
- ./config:/etc/skyhigh-traffic-forge
- ./logs-historical:/var/log/skyhigh-traffic-forge
environment:
SKYHIGH_LOG_FORMAT: "cef"
SKYHIGH_WORKER_THREADS: "8"
SKYHIGH_BATCH_SIZE: "10000"
command: generate --mode batch --start-date 2023-01-01 --end-date 2023-12-31
profiles: ["historical"]
# Example 4: Integration with Splunk
traffic-forge-splunk:
image: ghcr.io/skyhighsecurity/traffic-forge:latest
container_name: traffic-forge-splunk
volumes:
- ./config:/etc/skyhigh-traffic-forge
- splunk-logs:/var/log/skyhigh-traffic-forge
environment:
SKYHIGH_LOG_FORMAT: "splunk"
SKYHIGH_OUTPUT_DIR: "/var/log/skyhigh-traffic-forge"
command: generate --mode realtime
networks:
- splunk-net
profiles: ["splunk"]
splunk-forwarder:
image: splunk/universalforwarder:latest
container_name: splunk-forwarder
environment:
SPLUNK_START_ARGS: --accept-license
SPLUNK_PASSWORD: "changeme123!"
SPLUNK_FORWARD_SERVER: "splunk-indexer:9997"
volumes:
- splunk-logs:/var/log/traffic:ro
- ./splunk-inputs.conf:/opt/splunkforwarder/etc/system/local/inputs.conf
networks:
- splunk-net
depends_on:
- traffic-forge-splunk
profiles: ["splunk"]
# Example 5: Integration with Elasticsearch
traffic-forge-elastic:
image: ghcr.io/skyhighsecurity/traffic-forge:latest
container_name: traffic-forge-elastic
volumes:
- ./config:/etc/skyhigh-traffic-forge
- elastic-logs:/var/log/skyhigh-traffic-forge
environment:
SKYHIGH_LOG_FORMAT: "json"
command: generate --mode realtime
networks:
- elastic-net
profiles: ["elastic"]
filebeat:
image: elastic/filebeat:8.11.0
container_name: filebeat
user: root
volumes:
- elastic-logs:/var/log/traffic:ro
- ./filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- ELASTICSEARCH_HOSTS=elasticsearch:9200
networks:
- elastic-net
depends_on:
- traffic-forge-elastic
profiles: ["elastic"]
# Example 6: Multi-Region Simulation
traffic-forge-us-east:
image: ghcr.io/skyhighsecurity/traffic-forge:latest
container_name: traffic-forge-us-east
volumes:
- ./config-us-east:/etc/skyhigh-traffic-forge
- ./logs/us-east:/var/log/skyhigh-traffic-forge
environment:
SKYHIGH_REGION: "us-east-1"
SKYHIGH_TIMEZONE: "America/New_York"
command: generate --mode realtime
profiles: ["multi-region"]
traffic-forge-eu-west:
image: ghcr.io/skyhighsecurity/traffic-forge:latest
container_name: traffic-forge-eu-west
volumes:
- ./config-eu-west:/etc/skyhigh-traffic-forge
- ./logs/eu-west:/var/log/skyhigh-traffic-forge
environment:
SKYHIGH_REGION: "eu-west-1"
SKYHIGH_TIMEZONE: "Europe/London"
command: generate --mode realtime
profiles: ["multi-region"]
traffic-forge-ap-south:
image: ghcr.io/skyhighsecurity/traffic-forge:latest
container_name: traffic-forge-ap-south
volumes:
- ./config-ap-south:/etc/skyhigh-traffic-forge
- ./logs/ap-south:/var/log/skyhigh-traffic-forge
environment:
SKYHIGH_REGION: "ap-south-1"
SKYHIGH_TIMEZONE: "Asia/Singapore"
command: generate --mode realtime
profiles: ["multi-region"]
# Example 7: Compliance Testing Setup
# Generates specific patterns for compliance testing
traffic-forge-compliance:
image: ghcr.io/skyhighsecurity/traffic-forge:latest
container_name: traffic-forge-compliance
volumes:
- ./config-compliance:/etc/skyhigh-traffic-forge
- ./logs-compliance:/var/log/skyhigh-traffic-forge
environment:
SKYHIGH_LOG_FORMAT: "cef"
SKYHIGH_INCLUDE_PII: "true" # For testing DLP
SKYHIGH_INCLUDE_THREATS: "true" # For security testing
SKYHIGH_COMPLIANCE_MODE: "true"
command: generate --mode batch --days 30
profiles: ["compliance"]
# Networks
networks:
splunk-net:
driver: bridge
elastic-net:
driver: bridge
# Volumes
volumes:
splunk-logs:
driver: local
elastic-logs:
driver: local