-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
56 lines (53 loc) · 1.24 KB
/
docker-compose.yml
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
version: "3"
services:
mynfdump:
build:
context: nfdump
args:
- NFDUMP_VERSION=unicorn
restart: unless-stopped
container_name: "mynfdump"
mac_address: 8a:ca:58:b9:e9:52
networks:
mynetwork:
ipv4_address: 10.101.48.2
environment:
- NF_VIRT_MEM_LIMIT=3000000
- NFEXPIRE=on
- NFEXPIRE_TIME=2H
volumes:
- type: volume
source: nfdump_data
target: /data
command: ["nfcapd","-p","10000","-l",".","-t","10","-B","250000","-e"]
mytcpreplay:
build: ./tcpreplay
restart: unless-stopped
container_name: "mytcpreplay"
mac_address: 8a:ca:58:b9:e9:53
networks:
mynetwork:
ipv4_address: 10.101.48.3
volumes:
- type: bind
source: ./pcaps/example.pcap
target: /data/example.pcap
command: ["tcpreplay", "--quiet", "--preload-pcap", "--loop=0", "--intf1=eth0", "example.pcap"]
deploy:
resources:
limits:
cpus: '0.2'
memory: 20M
memswap_limit: 100M
networks:
mynetwork:
driver: bridge
internal: true
ipam:
driver: default
config:
- subnet: 10.101.48.0/29
gateway: 10.101.48.1
volumes:
nfdump_data:
name: "nfdump_data"