-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (63 loc) · 1.4 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
networks:
- tnet2
command: tcpdump -nSt icmp
rt2:
image: tema1:latest
volumes:
- .:/elocal
tty: true
networks:
- tnet2
command: ping -s 4000 rt1
depends_on:
- rt1
rt3:
image: tema1:latest
volumes:
- .:/elocal
tty: true
networks:
- tnet2
command: "ping rt1"
sysctls:
- net.ipv4.icmp_echo_ignore_all=1
depends_on:
- rt1
rt4:
image: tema1:latest
volumes:
- .:/elocal
tty: true
networks:
- tnet2
command: ping -c 1 rt3
depends_on:
- rt3
tn1:
image: baseimage:latest
volumes:
- .:/elocal
tty: true
networks:
- tnet1
command: bash -c 'echo \"- interfetele de retea:\" && ip addr && echo \"- gateway:\" && ip route show'
networks:
tnet2:
ipam:
driver: default
config:
- subnet: 1.2.3.0/24
gateway: 1.2.3.4
tnet1:
ipam:
driver: default
config:
- subnet: 198.13.13.0/16
gateway: 198.13.13.1