-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
136 lines (136 loc) · 3.55 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
version: '3'
services:
bookings:
container_name: bookings
environment:
- SERVICE_ENV=local
- LOGLEVEL=debug
- DB_HOST=dynamodb
- TOKEN_SERVICE=http://token:9009/api/token/verify
- EVENTS_SERVICE=http://events:9001/api/event
- ALLOW_ALL_ORIGINS=true
image: prdocker/samples:bookings
ports:
- "9004:9004"
depends_on:
- token
- dynamodb
- events
offers:
container_name: offers
environment:
- SERVICE_ENV=local
- LOGLEVEL=debug
- DB_HOST=dynamodb
- TOKEN_SERVICE=http://token:9009/api/token/verify
- CAMPAIGNS_SERVICE=http://campaigns:9002/api/campaign
- ALLOW_ALL_ORIGINS=true
image: prdocker/samples:offers
ports:
- "9003:9003"
depends_on:
- token
- dynamodb
- campaigns
campaigns:
container_name: campaigns
environment:
- SERVICE_ENV=local
- LOGLEVEL=debug
- DB_HOST=dynamodb
- TOKEN_SERVICE=http://token:9009/api/token/verify
- ALLOW_ALL_ORIGINS=true
image: prdocker/samples:campaigns
ports:
- "9002:9002"
depends_on:
- token
- dynamodb
events:
container_name: events
environment:
- SERVICE_ENV=local
- LOGLEVEL=debug
- DB_HOST=dynamodb
- TOKEN_SERVICE=http://token:9009/api/token/verify
- ALLOW_ALL_ORIGINS=true
image: prdocker/samples:events
ports:
- "9001:9001"
depends_on:
- token
- dynamodb
dynamodb:
image: prdocker/samples:dynamodb
container_name: dynamodb
ports:
- "8000:8000"
environment:
- AWS_ACCESS_KEY_ID=default
- AWS_SECRET_ACCESS_KEY=default
- AWS_REGION=localhost
- DYNAMO_ENDPOINT=http://localhost:8000
volumes:
- /mnt/share/data:/data
token:
container_name: token
image: prdocker/samples:token
ports:
- "9009:9009"
environment:
LDAP_ADMIN_DN: "cn=admin,dc=prdocker,dc=com,dc=au"
LDAP_ADMIN_PWD: "TNkz4aPbW&r5GDmJ"
LDAP_URL: "ldaps://openldap:636"
LDAP_CERT_PATH: "/home/service/server.crt"
LDAP_KEY_PATH: "/home/service/server.key"
LDAP_IGNORE_SSL: "TRUE"
DEBUG_LEVEL: "7"
TIMEOUT: "5000"
RESULT_SIZE: "100"
PORT: 9009
THREADS: 2
DP: "d41d8cd98f00b204e9800998ecf8427e"
TOKEN_SIGNER: "prdocker.com.au-TTTTTT"
ALLOW_ALL_ORIGINS: "TRUE"
depends_on:
- openldap
- phpldapadmin
phpldapadmin:
image: prdocker/samples:phpldapadmin
container_name: phpldapadmin
ports:
- "80:80"
- "6443:443"
environment:
PHPLDAPADMIN_LDAP_HOSTS: "openldap"
PHPLDAPADMIN_HTTPS: 'true'
PHPLDAPADMIN_HTTPS_CRT_FILENAME: "server.crt"
PHPLDAPADMIN_HTTPS_KEY_FILENAME: "server.key"
PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME: "server.crt"
depends_on:
- openldap
openldap:
image: prdocker/samples:ldap
container_name: openldap
environment:
LDAP_TLS: 'true'
LDAP_TLS_CRT_FILENAME: 'server.crt'
LDAP_TLS_KEY_FILENAME: 'server.key'
LDAP_TLS_CA_CRT_FILENAME: 'server.crt'
LDAP_ORGANISATION: "prdocker"
LDAP_LOG_LEVEL: 0
LDAP_DOMAIN: "prdocker.com.au"
LDAP_BASE_DN: "dc=prdocker,dc=com,dc=au"
LDAP_ADMIN_PASSWORD: "TNkz4aPbW&r5GDmJ"
LDAP_TLS_CIPHER_SUITE: "NORMAL"
LDAP_TLS_VERIFY_CLIENT: "try"
LDAP_BACKUP_CONFIG_CRON_EXP: "30 * * * *"
LDAP_BACKUP_DATA_CRON_EXP: "30 * * * *"
tty: true
stdin_open: true
volumes:
- /mnt/share/ldap/backup:/data/backup
ports:
- "389:389"
- "636:636"
hostname: "ldap-server"