forked from quantonganh/gluu-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
141 lines (133 loc) · 4.12 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
137
138
139
140
141
# use v2.3 API to allow `mem_limit` option
version: "2.3"
services:
consul:
image: consul
command: agent -server -bootstrap -ui
hostname: consul-1
environment:
- CONSUL_BIND_INTERFACE=eth0
- CONSUL_CLIENT_INTERFACE=eth0
container_name: consul
restart: unless-stopped
volumes:
- ./volumes/consul:/consul/data
labels:
- "SERVICE_IGNORE=yes"
restart: unless-stopped
registrator:
image: gliderlabs/registrator
command: -internal -cleanup -resync 30 -retry-attempts 5 -retry-interval 10 consul://consul:8500
container_name: registrator
volumes:
- /var/run/docker.sock:/tmp/docker.sock
restart: unless-stopped
depends_on:
- consul
nginx:
image: gluufederation/nginx:3.1.2_dev
environment:
- GLUU_KV_HOST=consul
ports:
- "80:80"
- "443:443"
container_name: nginx
depends_on:
- oxauth
- oxtrust
- oxshibboleth
- oxpassport
restart: unless-stopped
labels:
- "SERVICE_IGNORE=yes"
ldap:
image: gluufederation/opendj:3.1.2_dev
environment:
- GLUU_KV_HOST=consul
- GLUU_LDAP_INIT=true
- GLUU_LDAP_INIT_HOST=ldap
- GLUU_LDAP_INIT_PORT=1636
- GLUU_LDAP_ADDR_INTERFACE=eth0
- GLUU_OXTRUST_CONFIG_GENERATION=true
container_name: ldap
volumes:
- ./volumes/opendj/config:/opt/opendj/config
- ./volumes/opendj/ldif:/opt/opendj/ldif
- ./volumes/opendj/logs:/opt/opendj/logs
- ./volumes/opendj/db:/opt/opendj/db
- ./volumes/opendj/flag:/flag
restart: unless-stopped
labels:
- "SERVICE_IGNORE=yes"
oxauth:
image: gluufederation/oxauth:3.1.2_dev
environment:
- GLUU_KV_HOST=consul
- GLUU_LDAP_URL=ldap:1636
container_name: oxauth
volumes:
- ./volumes/oxauth/custom/pages:/opt/gluu/jetty/oxauth/custom/pages
- ./volumes/oxauth/custom/static:/opt/gluu/jetty/oxauth/custom/static
- ./volumes/oxauth/lib/ext:/opt/gluu/jetty/oxauth/lib/ext
- ./volumes/oxauth/logs:/opt/gluu/jetty/oxauth/logs
mem_limit: 1536M
restart: unless-stopped
labels:
- "SERVICE_NAME=oxauth"
- "SERVICE_8080_CHECK_HTTP=/oxauth/.well-known/openid-configuration"
- "SERVICE_8080_CHECK_INTERVAL=15s"
- "SERVICE_8080_CHECK_TIMEOUT=5s"
oxtrust:
image: gluufederation/oxtrust:3.1.2_dev
environment:
- GLUU_KV_HOST=consul
- GLUU_LDAP_URL=ldap:1636
- GLUU_OXAUTH_BACKEND=oxauth:8080
extra_hosts:
- "${DOMAIN}:${HOST_IP}"
container_name: oxtrust
volumes:
- ./volumes/oxtrust/custom/pages:/opt/gluu/jetty/identity/custom/pages
- ./volumes/oxtrust/custom/static:/opt/gluu/jetty/identity/custom/static
- ./volumes/oxtrust/lib/ext:/opt/gluu/jetty/identity/lib/ext
- ./volumes/oxtrust/logs:/opt/gluu/jetty/identity/logs
- ./volumes/shared-shibboleth-idp:/opt/shared-shibboleth-idp
mem_limit: 1536M
restart: unless-stopped
labels:
- "SERVICE_NAME=oxtrust"
- "SERVICE_8080_CHECK_HTTP=/identity/restv1/scim-configuration"
- "SERVICE_8080_CHECK_INTERVAL=15s"
- "SERVICE_8080_CHECK_TIMEOUT=5s"
oxshibboleth:
image: gluufederation/oxshibboleth:3.1.2_dev
environment:
- GLUU_KV_HOST=consul
- GLUU_LDAP_URL=ldap:1636
container_name: oxshibboleth
volumes:
- ./volumes/shared-shibboleth-idp:/opt/shared-shibboleth-idp
mem_limit: 1024M
restart: unless-stopped
labels:
- "SERVICE_NAME=oxshibboleth"
- "SERVICE_8086_CHECK_HTTP=/idp"
- "SERVICE_8086_CHECK_INTERVAL=15s"
- "SERVICE_8086_CHECK_TIMEOUT=5s"
oxpassport:
image: gluufederation/oxpassport:3.1.2_dev
environment:
- GLUU_KV_HOST=consul
- GLUU_LDAP_URL=ldap:1636
# required by wait-for-it script
- GLUU_OXAUTH_BACKEND=oxauth:8080
- GLUU_OXTRUST_BACKEND=oxtrust:8080
extra_hosts:
- "${DOMAIN}:${HOST_IP}"
container_name: oxpassport
restart: unless-stopped
labels:
- "SERVICE_NAME=oxpassport"
- "SERVICE_8090_CHECK_HTTP=/passport"
- "SERVICE_8090_CHECK_INTERVAL=15s"
- "SERVICE_8090_CHECK_TIMEOUT=5s"