-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (76 loc) · 2.18 KB
/
Copy pathdocker-compose.yml
File metadata and controls
85 lines (76 loc) · 2.18 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:
# ── IR System Infrastructure ─────────────────────────────────────
ir-redis:
image: redis:7-alpine
container_name: ir-redis
restart: unless-stopped
networks:
- ir-net
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
ir-system:
build:
context: .
dockerfile: Dockerfile
container_name: ir-system
restart: unless-stopped
depends_on:
ir-redis:
condition: service_healthy
environment:
- GEMINI_API_KEY=${GEMINI_API_KEY}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
- REDIS_URL=redis://ir-redis:6379
- IR_COLLECTOR=docker
- IR_DRY_RUN=${IR_DRY_RUN:-false}
- IR_ENABLE_SNAPSHOTS=${IR_ENABLE_SNAPSHOTS:-true}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro # monitor containers
- ir-data:/app/data # SQLite persistence
- ir-snapshots:/app/snapshots # forensic snapshots
networks:
- ir-net
- attack-net # see victim containers
extra_hosts:
- "host.docker.internal:host-gateway"
# ── Attack Surface ───────────────────────────────────────────────
falco:
image: falcosecurity/falco:0.37.1
container_name: ir-falco
privileged: true
volumes:
- /var/run/docker.sock:/host/var/run/docker.sock
- /proc:/host/proc:ro
- ./falco-config:/etc/falco
environment:
- SKIP_DRIVER_LOADER=true
extra_hosts:
- "host.docker.internal:host-gateway"
command:
- /usr/bin/falco
- --modern-bpf
- -c
- /etc/falco/falco.yaml
networks:
- attack-net
nginx-victim:
image: nginx:1.19.0
container_name: victim-nginx
networks:
- attack-net
redis-victim:
image: redis:5.0
container_name: victim-redis
networks:
- attack-net
networks:
ir-net:
driver: bridge
attack-net:
driver: bridge
volumes:
ir-data:
ir-snapshots: