-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstack.yml
45 lines (41 loc) · 1.27 KB
/
stack.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
version: "3.3"
services:
# apache-server container
apache-server:
image: victime-apache-server # image name
container_name: apache-server
build:
context: ./victime-apache-server # The directory where we can find the Dockerfile
networks:
DDOS-network:
ipv4_address: 172.20.0.2 # Specific IP address for this container
# restart: unless-stopped
# nginx-server container
nginx-server:
image: victime-nginx-server
build:
context: ./victime-nginx-server # The directory where we can find the Dockerfile
container_name: nginx-server
networks:
DDOS-network:
ipv4_address: 172.20.0.3 # Specific IP address for this container
#restart: unless-stopped
# attacker container
attacker:
image: attacker
container_name: attacker-DDOS
tty: true # Equivalent to `-t`, allocates a pseudo-TTY
stdin_open: true # Equivalent to `-i`, keeps STDIN open
build:
context: ./attacker # The directory where we can find the Dockerfile
networks:
DDOS-network:
ipv4_address: 172.20.0.4 # Specific IP address for this container
# restart: unless-stopped
# Define custom network
networks:
DDOS-network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16