forked from webpwnized/mutillidae-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (77 loc) · 1.79 KB
/
docker-compose.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Documentation: https://github.com/compose-spec/compose-spec/blob/master/spec.md
# Purpose: Build local containers for the Mutillidae environment
version: '3.7'
services:
database:
container_name: database
image: webpwnized/mutillidae:database
build:
context: ./database
dockerfile: Dockerfile
networks:
- datanet
database_admin:
container_name: database_admin
depends_on:
- database
image: webpwnized/mutillidae:database_admin
build:
context: ./database_admin
dockerfile: Dockerfile
ports:
- 127.0.0.1:81:80
networks:
- datanet
# Port 8888 is for StackHawk to scan
www:
container_name: www
depends_on:
- database
- directory
image: webpwnized/mutillidae:www
build:
context: ./www
dockerfile: Dockerfile
ports:
- 127.0.0.1:80:80
- 127.0.0.1:8888:80
- 127.0.0.1:443:443
- 127.0.0.2:80:80
- 127.0.0.2:8888:80
- 127.0.0.2:443:443
networks:
- datanet
- ldapnet
directory:
container_name: directory
image: webpwnized/mutillidae:ldap
build:
context: ./ldap
dockerfile: Dockerfile
volumes:
- ldap_data:/var/lib/ldap
- ldap_config:/etc/ldap/slapd.d
ports:
- 127.0.0.1:389:389
networks:
- ldapnet
directory_admin:
container_name: directory_admin
depends_on:
- directory
image: webpwnized/mutillidae:ldap_admin
build:
context: ./ldap_admin
dockerfile: Dockerfile
ports:
- 127.0.0.1:82:80
networks:
- ldapnet
# Volumes to persist data used by the LDAP server
volumes:
ldap_data:
ldap_config:
# Create network segments for the containers to use
networks:
datanet:
ldapnet: