-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 800 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 800 Bytes
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
version: "2"
services:
udplb:
build: .
cap_add:
- NET_ADMIN
- SYS_ADMIN
privileged: true
volumes:
- "/lib/modules:/lib/modules:ro"
- "/usr/src:/usr/src:ro"
- "/etc/localtime:/etc/localtime:ro"
- "./config.yaml:/config.yaml"
restart: always
command: "-d -c /config.yaml -i eth0"
networks:
vpcbr:
ipv4_address: 10.123.0.10
target_one:
image: corfr/tcpdump
command: -XX -eni eth0 udp port 8125
networks:
vpcbr:
ipv4_address: 10.123.0.20
target_two:
image: corfr/tcpdump
command: -XX -eni eth0 udp port 8125
networks:
vpcbr:
ipv4_address: 10.123.0.30
networks:
vpcbr:
driver: bridge
ipam:
config:
- subnet: 10.123.0.0/24
gateway: 10.123.0.1