-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-saml-test.yml
171 lines (161 loc) · 3.46 KB
/
docker-compose-saml-test.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
version: "3.6"
secrets:
idp_encryption:
file: ./secrets/idp/idp-encryption.key
idp_signing:
file: ./secrets/idp/idp-signing.key
idp_sealer:
file: ./secrets/idp/sealer.jks
networks:
front:
driver: bridge
back:
driver: bridge
volumes:
es-data:
db-data:
ldap-data:
ldap-config:
ldap-logs:
uwsgi-logs:
x-opds-feed: &x-opds-feed
build: ./flask-sp
image: flask-sp:latest
restart: always
expose:
- "80"
depends_on:
- metadata
services:
metadata:
build: ./metadata/
image: metadata:latest
environment:
IDP_ENTITYID:
IDP_SSO:
CM_ENTITYID:
CM_ACS:
OPDS1_ENTITYID:
OPDS1_ACS:
OPDS2_ENTITYID:
OPDS2_ACS:
volumes:
- type: bind
source: ./metadata/output
target: /metadata
ldap:
build: ./ldap/
image: ldap:latest
restart: always
environment:
HOSTNAME:
LDAP_SUFFIX:
LDAP_ADMIN_USERNAME:
LDAP_ADMIN_PASSWORD:
LDAP_MANAGER_PASSWORD:
volumes:
- ldap-data:/var/lib/dirsrv
- ldap-config:/etc/dirsrv
- ldap-logs:/var/log/dirsrv
networks:
- back
idp:
build: ./shibboleth-idp/
image: shibboleth-idp
restart: always
expose:
- "80"
depends_on:
- ldap
- metadata
secrets:
- source: idp_encryption
- source: idp_signing
- source: idp_sealer
environment:
LDAP_SUFFIX:
LDAP_ADMIN_USERNAME:
LDAP_ADMIN_PASSWORD:
IDP_ENTITYID:
CM_ENTITYID:
OPDS1_ENTITYID:
OPDS2_ENTITYID:
volumes:
- type: bind
source: ./metadata/output/
target: /opt/shibboleth-idp/metadata
networks:
back:
aliases:
- ${IDP_HOSTNAME}
opds1:
<<: *x-opds-feed
environment:
SAML_PATH: /app/config/saml
LOCAL_METADATA_PATH: /metadata/idp.xml
IDP_ENTITYID:
IDP_HOSTNAME:
OPDS1_ENTITYID:
OPDS1_ACS:
volumes:
- type: bind
source: ./metadata/output
target: /metadata
- type: bind
source: ./flask-sp/opds-config/opds1/saml/confd
target: /app/config/saml
- type: bind
source: ./flask-sp/opds-config/opds1/opds/feed.xml
target: /app/flask_sp/templates/feed/index.xml
- type: bind
source: ./flask-sp/opds-config/opds1/opds/books
target: /app/flask_sp/static/books
networks:
back:
aliases:
- ${OPDS1_HOSTNAME}
opds2:
<<: *x-opds-feed
environment:
SAML_PATH: /app/config/saml
LOCAL_METADATA_PATH: /metadata/idp.xml
IDP_ENTITYID:
IDP_HOSTNAME:
OPDS2_ENTITYID:
OPDS2_ACS:
volumes:
- type: bind
source: ./metadata/output
target: /metadata
- type: bind
source: ./flask-sp/opds-config/opds2/saml/confd
target: /app/config/saml
- type: bind
source: ./flask-sp/opds-config/opds2/opds/feed.xml
target: /app/flask_sp/templates/feed/index.xml
- type: bind
source: ./flask-sp/opds-config/opds2/opds/books
target: /app/flask_sp/static/books
networks:
back:
aliases:
- ${OPDS2_HOSTNAME}
proxy:
build: ./proxy
image: proxy:latest
restart: always
ports:
- "80:80"
depends_on:
- idp
- opds1
- opds2
environment:
IDP_HOSTNAME:
OPDS1_HOSTNAME:
OPDS2_HOSTNAME:
CM_HOSTNAME:
CMTEST_HOSTNAME:
networks:
- front
- back