mirror of
https://github.com/Oxbian/SIDPS.git
synced 2025-07-07 12:24:38 +02:00
feat: new networking partition + schema + test everything works
This commit is contained in:
@ -7,6 +7,8 @@ services:
|
||||
dockerfile: Demo/Dockerfiles/Dockerfile.attaquant
|
||||
container_name: attaquant1
|
||||
command: sleep infinity
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
networks:
|
||||
net_public:
|
||||
ipv4_address: 172.20.1.2
|
||||
@ -27,15 +29,19 @@ services:
|
||||
ipv4_address: 172.20.1.3
|
||||
net_private:
|
||||
ipv4_address: 172.20.2.2
|
||||
net_data:
|
||||
ipv4_address: 172.20.3.2
|
||||
restart: unless-stopped
|
||||
|
||||
# Cible
|
||||
cible:
|
||||
build:
|
||||
context: Dockerfiles/.
|
||||
dockerfile: Dockerfile.cible
|
||||
context: ..
|
||||
dockerfile: Demo/Dockerfiles/Dockerfile.cible
|
||||
container_name: cible
|
||||
command: sleep infinity
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
networks:
|
||||
net_private:
|
||||
ipv4_address: 172.20.2.3
|
||||
@ -44,10 +50,12 @@ services:
|
||||
# Attaquant 2
|
||||
atk2:
|
||||
build:
|
||||
context: Dockerfiles/.
|
||||
dockerfile: Dockerfile.attaquant
|
||||
context: ..
|
||||
dockerfile: Demo/Dockerfiles/Dockerfile.attaquant
|
||||
container_name: attaquant2
|
||||
command: sleep infinity
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
networks:
|
||||
net_private:
|
||||
ipv4_address: 172.20.2.4
|
||||
@ -81,8 +89,8 @@ services:
|
||||
ports:
|
||||
- "3306:3306"
|
||||
networks:
|
||||
net_private:
|
||||
ipv4_address: 172.20.2.10
|
||||
net_data:
|
||||
ipv4_address: 172.20.3.10
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
@ -96,3 +104,8 @@ networks:
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.20.2.0/24
|
||||
net_data:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.20.3.0/24
|
||||
|
Reference in New Issue
Block a user