-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (71 loc) · 1.85 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
version: "3.4"
x-shared-config: &shared-config
extra_hosts:
- "wrenam.wrensecurity.local:10.0.0.11"
- "wrenam1.wrensecurity.local:10.0.0.21"
- "wrenam2.wrensecurity.local:10.0.0.22"
- "wrends1.wrensecurity.local:10.0.0.31"
- "ldap1.wrensecurity.local:10.0.0.41"
services:
frontend:
image: haproxy:2.7.8
container_name: wrenam-frontend
volumes:
- .docker/frontend/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
networks:
wrenam:
ipv4_address: 10.0.0.11
<<: *shared-config
wrenam1:
image: "${WRENAM_IMAGE:-wrenam}"
container_name: wrenam-test1
hostname: wrenam1.wrensecurity.local
volumes:
- .docker/wrenam/config1.properties:/srv/wrenam/config.properties
- .docker/wrenam/LDAP.properties:/srv/wrenam/LDAP.properties
depends_on:
- frontend
- wrends1
networks:
wrenam:
ipv4_address: 10.0.0.21
<<: *shared-config
wrenam2:
image: "${WRENAM_IMAGE:-wrenam}"
container_name: wrenam-test2
hostname: wrenam2.wrensecurity.local
volumes:
- .docker/wrenam/config2.properties:/srv/wrenam/config.properties
depends_on:
- frontend
- wrends1
networks:
wrenam:
ipv4_address: 10.0.0.22
<<: *shared-config
wrends1:
image: wrensecurity/wrends:5.0.1
container_name: wrenam-wrends1
environment:
BASE_DN: ou=wrenam,dc=wrensecurity,dc=org
ROOT_USER_DN: cn=Directory Manager
ROOT_USER_PASSWORD: password
networks:
wrenam:
ipv4_address: 10.0.0.31
<<: *shared-config
ldap1:
build: .docker/openldap
container_name: wrenam-ldap1
environment:
LDAP_ADMIN_PASSWORD: password
networks:
wrenam:
ipv4_address: 10.0.0.41
<<: *shared-config
networks:
wrenam:
name: wrenam-test
ipam:
config:
- subnet: 10.0.0.0/24