49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
services:
|
|
# وبسرور اپلیکیشن اصلی (Victim)
|
|
victim-nginx:
|
|
image: nginx:stable-alpine
|
|
container_name: sec_lab_victim_nginx
|
|
ports:
|
|
- "58690:80"
|
|
volumes:
|
|
- ./:/var/www/html:ro
|
|
- ./docker/nginx/victim.conf:/etc/nginx/conf.d/default.conf:ro
|
|
depends_on:
|
|
- php
|
|
networks:
|
|
- lab_net
|
|
restart: always
|
|
|
|
# هسته پردازشی PHP
|
|
php:
|
|
container_name: sec_lab_php
|
|
build:
|
|
context: .
|
|
dockerfile: ./docker/php/Dockerfile
|
|
args:
|
|
- COMPOSER_REGISTRY=http://192.168.1.201:8081/repository/composer-runflare/
|
|
- LINUX_REGISTRY=http://192.168.1.201:8081/repository/debian-arvan
|
|
- SECURITY_REGISTRY=http://192.168.1.201:8081/repository/debian-arvan-security
|
|
- NPM_REGISTRY=http://192.168.1.201:8081/repository/npm-group/
|
|
- NODE_REGISTRY=http://192.168.1.201:8081/repository/node-dist
|
|
volumes:
|
|
- ./:/var/www/html:rw # ولوم اضافی nginx از اینجا حذف شد
|
|
networks:
|
|
- lab_net
|
|
restart: always
|
|
|
|
# اپلیکیشن مهاجم (Hacker)
|
|
attacker-app:
|
|
image: nginx:stable-alpine
|
|
container_name: sec_lab_attacker_nginx
|
|
ports:
|
|
- "58691:80"
|
|
volumes:
|
|
- ./hacker_site:/usr/share/nginx/html:ro
|
|
networks:
|
|
- lab_net
|
|
restart: always
|
|
|
|
networks:
|
|
lab_net:
|
|
driver: bridge |