-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
234 lines (220 loc) · 4.66 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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
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}
db:
image: postgres
restart: always
environment:
POSTGRES_DB: simplified_circulation_dev
POSTGRES_USER: simplified
POSTGRES_PASSWORD: password
volumes:
- db-data:/var/lib/postgresql/data
networks:
- back
es:
build: ./elasticsearch
image: elasticsearch:latest
restart: always
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es-data:/usr/share/elasticsearch/data
networks:
- back
cm:
image: ghcr.io/thepalaceproject/circ-webapp:main
restart: always
expose:
- "80"
depends_on:
- db
- es
- metadata
- idp
- opds1
- opds2
environment:
SIMPLIFIED_PRODUCTION_DATABASE: postgres://simplified:password@db:5432/simplified_circulation_dev
volumes:
- uwsgi-logs:/var/log/uwsgi
networks:
back:
aliases:
- ${CM_HOSTNAME}
cm-test:
build: ./circulation-test/
image: circulation-test:latest
restart: always
expose:
- "80"
depends_on:
- cm
environment:
CM_AUTHENTICATION_DOCUMENT_URL:
CM_LOANS_URL:
CM_GROUPS_URL:
networks:
- back
proxy:
build: ./proxy
image: proxy:latest
restart: always
ports:
- "80:80"
depends_on:
- idp
- opds1
- opds2
- cm
- cm-test
environment:
IDP_HOSTNAME:
OPDS1_HOSTNAME:
OPDS2_HOSTNAME:
CM_HOSTNAME:
CMTEST_HOSTNAME:
networks:
- front
- back