-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
69 lines (61 loc) · 1.52 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
# 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: docker.io/webpwnized/mutillidae:database
networks:
- datanet
database_admin:
container_name: database_admin
depends_on:
- database
image: docker.io/webpwnized/mutillidae:database_admin
ports:
- 127.0.0.1:81:80
networks:
- datanet
# IP 127.0.0.1 is for mutillidae.localhost or www.mutillidae.localhost
# IP 127.0.0.1 is for cors.mutilliiidae.localhost
www:
container_name: www
depends_on:
- database
- directory
image: docker.io/webpwnized/mutillidae:www
ports:
- 127.0.0.1:80:80
- 127.0.0.1:443:443
# - 127.0.0.2:80:80
# - 127.0.0.2:443:443
networks:
- datanet
- ldapnet
directory:
container_name: directory
image: docker.io/webpwnized/mutillidae:ldap
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: docker.io/webpwnized/mutillidae:ldap_admin
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: