-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
204 lines (185 loc) · 4.21 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
version: "3.6"
networks:
front:
driver: bridge
back:
driver: bridge
volumes:
es-data:
postgres-data:
mariadb-data:
minio-data:
lcp-data:
ldap-data:
ldap-config:
intermediate-repository:
ldap-logs:
uwsgi-logs:
testfrontend-rawfiles:
testfrontend-encfiles:
services:
lcp-conf:
build: ./lcp-docker-conf/
image: lcp-conf:development
environment:
AWS_REGION:
AWS_S3_USER:
AWS_S3_KEY:
AWS_S3_SECRET:
READIUM_S3_BUCKET:
READIUM_DATABASE_HOST:
READIUM_DATABASE_PORT:
READIUM_DATABASE_USERNAME:
READIUM_DATABASE_PASSWORD:
READIUM_LCPSERVER_PROFILE:
READIUM_LCPSERVER_HOST:
READIUM_LCPSERVER_PORT:
READIUM_LCPSERVER_DATABASE:
READIUM_LCPSERVER_USERNAME:
READIUM_LCPSERVER_PASSWORD:
READIUM_LSDSERVER_HOST:
READIUM_LSDSERVER_PORT:
READIUM_LSDSERVER_DATABASE:
READIUM_FRONTEND_HOST:
READIUM_FRONTEND_PORT:
READIUM_FRONTEND_DATABASE:
CM_DATABASE_HOST:
CM_DATABASE_PORT:
CM_DATABASE_DATABASE:
CM_DATABASE_USERNAME:
CM_DATABASE_PASSWORD:
READIUM_LSDSERVER_HOSTNAME:
READIUM_FRONTEND_HOSTNAME:
MINIO_HOSTNAME:
CM_HOSTNAME:
volumes:
- type: bind
source: ./lcp-docker-conf/confd
target: /etc/confd
- type: bind
source: ./lcp-docker/base-local/.
target: /lcp-conf
postgres:
image: postgres
restart: always
environment:
POSTGRES_DB: ${CM_DATABASE_DATABASE}
POSTGRES_USER: ${CM_DATABASE_USERNAME}
POSTGRES_PASSWORD: ${CM_DATABASE_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- back
es:
build: ./elasticsearch
image: elasticsearch:development
restart: always
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es-data:/usr/share/elasticsearch/data
networks:
- back
cm:
image: nypl/circ-webapp:development
restart: always
expose:
- "80"
depends_on:
- postgres
- es
environment:
SIMPLIFIED_PRODUCTION_DATABASE: postgres://${CM_DATABASE_USERNAME}:${CM_DATABASE_PASSWORD}@${CM_DATABASE_HOST}:${CM_DATABASE_PORT}/${CM_DATABASE_DATABASE}
volumes:
- uwsgi-logs:/var/log/uwsgi
networks:
back:
aliases:
- ${CM_HOSTNAME}
mariadb:
build: ./lcp-docker/base-local/database
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${READIUM_DATABASE_PASSWORD}
volumes:
- mariadb-data:/var/lib/mysql
networks:
- back
minio:
image: minio/minio
environment:
MINIO_ACCESS_KEY: ${AWS_S3_KEY}
MINIO_SECRET_KEY: ${AWS_S3_SECRET}
volumes:
- minio-data:/data
command: ["server", "/data"]
networks:
- back
lcpserver:
build:
context: ./lcp-docker/base-local/.
target: lcpserver
image: readium/lcpserver:development
restart: always
depends_on:
- lcp-conf
- mariadb
- minio
volumes:
- intermediate-repository:/opt/readium/files
- ./lcp-docker/base-local/etc:/etc/readium
networks:
- back
lsdserver:
build:
context: ./lcp-docker/base-local/.
target: lsdserver
image: readium/lsdserver:working
restart: always
depends_on:
- mariadb
- lcp-conf
- lcpserver
volumes:
- ./lcp-docker/base-local/etc:/etc/readium
networks:
- back
testfrontend:
build:
context: ./lcp-docker/base-local/.
target: testfrontend
image: readium/testfrontend:working
restart: always
depends_on:
- mariadb
- lcp-conf
- lcpserver
- lsdserver
volumes:
- ./lcp-docker/base-local/etc:/etc/readium
- testfrontend-rawfiles:/opt/readium/files/raw
- testfrontend-encfiles:/opt/readium/files/encrypted
networks:
- back
proxy:
build: ./proxy
image: proxy:latest
restart: always
ports:
- "80:80"
depends_on:
- lsdserver
- testfrontend
- minio
- cm
environment:
READIUM_LSDSERVER_HOSTNAME:
READIUM_FRONTEND_HOSTNAME:
MINIO_HOSTNAME:
CM_HOSTNAME:
networks:
- front
- back