-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.debug.yml
47 lines (44 loc) · 1.04 KB
/
docker-compose.debug.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
version: '3.4'
services:
icmpreply:
image: icmpreply:debug-latest
environment:
- SIMULATE_ROUTER=172.20.0.6
- SIMULATE_NETWORK=172.30.0.1-172.30.0.10
# additional options can be passed to program :
command: -loglevel debug
build:
context: src
dockerfile: ../Dockerfile.debug
cap_add:
- NET_ADMIN
ports:
- 4000:4000
networks:
simulator:
# must provide an IP to make Docker happy
ipv4_address: "172.20.0.5"
# Just run: docker compose run netshell bash
# Simulated network defined as environment variable
netshell:
#image: jonlabelle/network-tools
build:
context: network-tools
dockerfile: ./Dockerfile
cap_add:
- NET_ADMIN
depends_on:
- icmpreply
environment:
- IP_GATEWAY=172.20.0.5
- IP_ROUTE=172.30.0.0/24
command: bash
stdin_open: true
tty: true
networks:
simulator:
networks:
simulator:
ipam:
config:
- subnet: "172.20.0.0/24"