-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
41 lines (40 loc) · 1.04 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
services:
sentinel:
build: .
ports:
- "8080:8080"
- "1514:1514/udp"
volumes:
- sentinel-data:/var/lib/sentinel/data
- ./sentinel.toml:/etc/sentinel/sentinel.toml:ro
- ./rules.toml:/etc/sentinel/rules.toml:ro
# Mount MaxMind GeoIP databases (GeoLite2-City.mmdb, GeoLite2-ASN.mmdb)
# - /path/to/GeoIP:/usr/share/GeoIP:ro
# Mount threat intel feed files
# - ./feeds:/etc/sentinel/feeds:ro
environment:
- RUST_LOG=info
# - SENTINEL_WEBHOOK_SECRET=your-secret-here
# - SENTINEL_API_TOKEN=your-token-here
restart: unless-stopped
deploy:
resources:
limits:
cpus: "2.0"
memory: 512M
reservations:
cpus: "0.25"
memory: 128M
logging:
driver: json-file
options:
max-size: "50m"
max-file: "5"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
sentinel-data: