-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (63 loc) · 1.42 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
57
58
59
60
61
62
63
64
65
version: '2.1'
services:
rt1:
image: tema1:latest
volumes:
- .:/elocal
tty: true
command: ["tcpdump", "-nSt", "icmp"]
networks:
- tnet2
rt2:
image: tema1:latest
volumes:
- .:/elocal
tty: true
depends_on:
- rt1
command: ["ping", "-s", "4000", "rt1"]
networks:
- tnet2
rt3:
image: tema1:latest
volumes:
- .:/elocal
tty: true
depends_on:
- rt1
command: ["ping", "rt1"]
sysctls:
- net.ipv4.icmp_echo_ignore_all=1
networks:
- tnet2
rt4:
image: tema1:latest
volumes:
- .:/elocal
tty: true
depends_on:
- rt3
command: ["ping", "-c", "1", "rt3"]
networks:
- tnet2
tn1:
image: baseimage:latest
volumes:
- .:/elocal
tty: true
command: "bash -c 'echo \"- interfetele de retea:\" && ip addr && echo \"- gateway:\" && ip route show'"
networks:
- tnet1
networks:
tnet2:
ipam:
driver: default
config:
- subnet: 1.2.3.5/16
gateway: 1.2.3.4
tnet1:
ipam:
driver: default
config:
- subnet: 6.6.6.0/8
gateway: 6.6.6.6