Add
This commit is contained in:
parent
3be573b6d1
commit
a5613bb274
|
|
@ -1,54 +1,48 @@
|
||||||
services:
|
services:
|
||||||
# ----------------------------------------
|
# وبسرور اپلیکیشن اصلی (Victim)
|
||||||
# NGINX (Web Server)
|
|
||||||
# ----------------------------------------
|
|
||||||
victim-nginx:
|
victim-nginx:
|
||||||
image: nginx:stable-alpine
|
image: nginx:stable-alpine
|
||||||
container_name: sec_lab_victim_nginx
|
container_name: sec_lab_victim_nginx
|
||||||
ports:
|
ports:
|
||||||
- "58690:80" # روی سرور پورت 80 باز باشد
|
- "58690:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/var/www/html:ro
|
- ./:/var/www/html:ro
|
||||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
- ./docker/nginx/victim.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
php:
|
- php
|
||||||
condition: service_started
|
|
||||||
networks:
|
networks:
|
||||||
- lab_net
|
- lab_net
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
# ----------------------------------------
|
# هسته پردازشی PHP
|
||||||
# PHP-FPM (Vulnerable Laravel Core)
|
|
||||||
# ----------------------------------------
|
|
||||||
php:
|
php:
|
||||||
container_name: sec_lab_php
|
container_name: sec_lab_php
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./docker/php/Dockerfile
|
dockerfile: ./docker/php/Dockerfile
|
||||||
args:
|
args:
|
||||||
# اینجا میتوانید آدرس Nexus داخلی سرور خود را بدهید
|
|
||||||
- COMPOSER_REGISTRY=http://192.168.1.201:8081/repository/composer-runflare/
|
- COMPOSER_REGISTRY=http://192.168.1.201:8081/repository/composer-runflare/
|
||||||
- LINUX_REGISTRY=http://192.168.1.201:8081/repository/debian-arvan
|
- LINUX_REGISTRY=http://192.168.1.201:8081/repository/debian-arvan
|
||||||
- SECURITY_REGISTRY=http://192.168.1.201:8081/repository/debian-arvan-security
|
- SECURITY_REGISTRY=http://192.168.1.201:8081/repository/debian-arvan-security
|
||||||
- NPM_REGISTRY=http://192.168.1.201:8081/repository/npm-group/
|
- NPM_REGISTRY=http://192.168.1.201:8081/repository/npm-group/
|
||||||
- NODE_REGISTRY=http://192.168.1.201:8081/repository/node-dist
|
- NODE_REGISTRY=http://192.168.1.201:8081/repository/node-dist
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/var/www/html:rw
|
- ./:/var/www/html:rw # ولوم اضافی nginx از اینجا حذف شد
|
||||||
- ./docker/nginx/victim.conf:/etc/nginx/conf.d/default.conf:ro
|
|
||||||
networks:
|
networks:
|
||||||
- lab_net
|
- lab_net
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
# اپلیکیشن دوم: سرور هکر (یک سرور بسیار سبک برای میزبانی پیلودها)
|
# اپلیکیشن مهاجم (Hacker)
|
||||||
attacker-app:
|
attacker-app:
|
||||||
image: nginx:stable-alpine
|
image: nginx:stable-alpine
|
||||||
container_name: sec_lab_attacker_nginx
|
container_name: sec_lab_attacker_nginx
|
||||||
ports:
|
ports:
|
||||||
- "58691:80" # مپ کردن به پورت 8002 سرور
|
- "58691:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./hacker_site:/usr/share/nginx/html:ro
|
- ./hacker_site:/usr/share/nginx/html:ro
|
||||||
networks:
|
networks:
|
||||||
- lab_net
|
- lab_net
|
||||||
|
restart: always
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
lab_net:
|
lab_net:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user