-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (69 loc) · 2.37 KB
/
docker-compose.yml
File metadata and controls
85 lines (69 loc) · 2.37 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
services:
traffic-forge:
image: ghcr.io/skyhighsecurity/traffic-forge:latest
container_name: skyhigh-traffic-forge
# Volumes for configuration and log output
volumes:
# Configuration directory (required)
- ./config:/etc/skyhigh-traffic-forge
# Log output directory
- ./logs:/var/log/skyhigh-traffic-forge
# Optional: Custom data files
# - ./data:/usr/share/skyhigh-traffic-forge/data
# Environment variables for configuration
environment:
# Log format: splunk (default), cef, leef, json
SKYHIGH_LOG_FORMAT: "splunk"
# Output settings
SKYHIGH_OUTPUT_DIR: "/var/log/skyhigh-traffic-forge"
SKYHIGH_MAX_FILE_SIZE: "100MB"
SKYHIGH_ROTATE_INTERVAL: "1h"
# Performance settings
SKYHIGH_WORKER_THREADS: "4"
SKYHIGH_BATCH_SIZE: "1000"
# Logging verbosity: DEBUG, INFO, WARNING, ERROR
SKYHIGH_LOG_LEVEL: "INFO"
# Optional: Override config file location
# SKYHIGH_CONFIG_FILE: "/etc/skyhigh-traffic-forge/custom.yaml"
# Command to run (default: realtime mode)
command: generate --mode realtime
# Alternative commands:
# Batch mode - generate historical data
# command: generate --mode batch --start-date 2024-01-01 --end-date 2024-01-31
# Replay mode - replay at accelerated speed
# command: generate --mode replay --start-date 2024-01-01 --days 7 --speed 10
# Resource limits (optional)
deploy:
resources:
limits:
cpus: '2.0'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M
# Health check
healthcheck:
test: ["CMD", "test", "-f", "/var/log/skyhigh-traffic-forge/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Restart policy
restart: unless-stopped
# Optional: Run as specific user (default: 1000)
# user: "1000:1000"
# Optional: Add labels for organization
labels:
com.skyhighsecurity.product: "traffic-forge"
com.skyhighsecurity.version: "1.0.0"
com.skyhighsecurity.description: "Web Gateway Traffic Simulator"
# Optional: Named volumes instead of bind mounts
# volumes:
# config:
# driver: local
# logs:
# driver: local
# Optional: Custom network
# networks:
# default:
# name: traffic-forge-network