-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
244 lines (240 loc) · 7.61 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
235
236
237
238
239
240
241
242
243
244
version: '3.7'
configs:
authorized_keys:
file: authorized_keys
secrets:
bulwark_aws_access_key_id:
external: true
name: colenda_bulwark_aws_access_key_id_v${AWS_ACCESS_KEY_ID_VERSION}
bulwark_aws_secret_access_key:
external: true
name: colenda_bulwark_aws_secret_access_key_v${AWS_SECRET_ACCESS_KEY_VERSION}
bulwark_s3_access_key_id:
external: true
name: colenda_bulwark_s3_access_key_id_v${S3_ACCESS_KEY_ID_VERSION}
bulwark_s3_secret_access_key:
external: true
name: colenda_bulwark_s3_secret_access_key_v${S3_SECRET_ACCESS_KEY_VERSION}
bulwark_s3_region:
external: true
name: colenda_bulwark_s3_region_v${S3_REGION_VERSION}
bulwark_database_password:
external: true
name: colenda_bulwark_database_password_v${DATABASE_PASSWORD_VERSION}
bulwark_database_root_password:
external: true
name: colenda_bulwark_database_root_password_v${DATABASE_ROOT_PASSWORD_VERSION}
bulwark_ezid_password:
external: true
name: colenda_bulwark_ezid_password_v${EZID_PASSWORD_VERSION}
bulwark_git_user_pass:
external: true
name: colenda_bulwark_git_user_pass_v${GIT_USER_PASS_VERSION}
bulwark_imaging_user_pass:
external: true
name: colenda_bulwark_imaging_user_pass_v${IMAGING_USER_PASS_VERSION}
bulwark_honeybadger_api_key:
external: true
name: colenda_bulwark_honeybadger_api_key_v${HONEYBADGER_API_KEY_VERSION}
bulwark_secret_key_base:
external: true
name: colenda_bulwark_secret_key_base_v${SECRET_KEY_BASE_VERSION}
bulwark_publishing_token:
external: true
name: colenda_bulwark_publishing_token_v${PUBLISHING_TOKEN_VERSION}
services:
redis:
image: 'redis:3.2-alpine'
command: 'redis-server'
ports:
- '6379:6379'
volumes:
- 'redis:/var/lib/redis/data'
db:
image: 'mysql:5.7'
deploy:
endpoint_mode: dnsrr
environment:
MYSQL_DATABASE: ${DATABASE_NAME}
MYSQL_PASSWORD_FILE: /run/secrets/bulwark_database_password
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/bulwark_database_root_password
MYSQL_USER: ${DATABASE_USERNAME}
secrets:
- source: bulwark_database_password
target: /run/secrets/bulwark_database_password
- source: bulwark_database_root_password
target: /run/secrets/bulwark_database_root_password
volumes:
- 'db:/var/lib/mysql'
phalt_app:
image: 'gitlab.library.upenn.edu/dld/digital-repository/phalt:${PHALT_IMAGE_TAG}'
environment:
IIIF:
IIIF_BASE:
OAI_PMH:
VIRTUAL_HOST:
VIRTUAL_URL:
DOWNLOAD_LINK:
DOWNLOAD_PORT:
MARMITE_URL:
STORAGE_HOST:
ports:
- '9292'
web:
image: 'gitlab.library.upenn.edu/dld/digital-repository/bulwark:${BULWARK_IMAGE_TAG}'
configs:
- source: 'authorized_keys'
target: '/home/gitannex/.ssh/authorized_keys'
deploy:
replicas: 2
update_config:
parallelism: 1
environment:
APP_URL:
CACHE_URL:
DATABASE_NAME:
DATABASE_USERNAME:
EZID_DEFAULT_SHOULDER:
EZID_USER:
GIT_USER:
IIIF_IMAGE_SERVER:
IMAGING_USER:
MARMITE_URL:
PHALT_ENDPOINT:
SOLR_URL:
RAILS_ENV:
REDIS_URL:
REQUEST_STYLE:
S3_PRESERVATION_BUCKET:
S3_DERIVATIVES_BUCKET:
S3_IIIF_MANIFEST_BUCKET:
SCETI_COMPLETED_4_HARVESTING_ENDPOINT_REMOTE:
SCETI_COMPLETED_5_HARVESTING_ENDPOINT_REMOTE:
SMTP_ADDRESS:
SMTP_DOMAIN:
SMTP_PORT:
SPECIAL_REMOTE_NAME:
STORAGE_ENCRYPTION:
STORAGE_HOST:
STORAGE_PORT:
STORAGE_PROTOCOL:
STORAGE_PUBLIC:
STORAGE_READ_HOST:
STORAGE_READ_PROTOCOL:
STORAGE_TYPE:
UV_URL:
networks:
default:
aliases:
- 'web'
ports:
- '80:80'
- '${SSH_PORT}:22'
secrets:
- source: bulwark_aws_access_key_id
target: /run/secrets/aws_access_key_id
- source: bulwark_aws_secret_access_key
target: /run/secrets/aws_secret_access_key
- source: bulwark_s3_access_key_id
target: /run/secrets/s3_access_key_id
- source: bulwark_s3_secret_access_key
target: /run/secrets/s3_secret_access_key
- source: bulwark_s3_region
target: /run/secrets/s3_region
- source: bulwark_database_password
target: /run/secrets/database_password
- source: bulwark_ezid_password
target: /run/secrets/ezid_password
- source: bulwark_git_user_pass
target: /run/secrets/git_user_pass
- source: bulwark_imaging_user_pass
target: /run/secrets/imaging_user_pass
- source: bulwark_honeybadger_api_key
target: /run/secrets/honeybadger_api_key
- source: bulwark_secret_key_base
target: /run/secrets/secret_key_base
- source: bulwark_publishing_token
target: /run/secrets/publishing_token
volumes:
- '${LOCAL_DATA}:${REMOTE_DATA}'
- '${LOCAL_WORKSPACE}:${REMOTE_WORKSPACE}'
- 'sceti_completed_4:${SCETI_COMPLETED_4_HARVESTING_ENDPOINT_REMOTE}'
- 'sceti_completed_5:${SCETI_COMPLETED_5_HARVESTING_ENDPOINT_REMOTE}'
- '${LOCAL_FEATURED}:/home/app/webapp/public/assets/featured'
sidekiq:
image: 'gitlab.library.upenn.edu/dld/digital-repository/bulwark:${BULWARK_IMAGE_TAG}'
command: bash -c "/etc/my_init.d/gitannex.sh && /etc/my_init.d/imaging.sh && /sbin/my_init --skip-startup-files --skip-runit -- su app -c 'bundle exec sidekiq -C config/sidekiq.yml'"
deploy:
replicas: 3
update_config:
parallelism: 1
environment:
APP_URL:
CACHE_URL:
DATABASE_NAME:
DATABASE_USERNAME:
EZID_DEFAULT_SHOULDER:
EZID_USER:
GIT_USER:
IIIF_IMAGE_SERVER:
IMAGING_USER:
MARMITE_URL:
PHALT_ENDPOINT:
SOLR_URL:
RAILS_ENV:
REDIS_URL:
REQUEST_STYLE:
S3_PRESERVATION_BUCKET:
S3_DERIVATIVES_BUCKET:
S3_IIIF_MANIFEST_BUCKET:
SCETI_COMPLETED_4_HARVESTING_ENDPOINT_REMOTE:
SCETI_COMPLETED_5_HARVESTING_ENDPOINT_REMOTE:
SMTP_ADDRESS:
SMTP_DOMAIN:
SMTP_PORT:
SPECIAL_REMOTE_NAME:
STORAGE_ENCRYPTION:
STORAGE_HOST:
STORAGE_PORT:
STORAGE_PROTOCOL:
STORAGE_PUBLIC:
STORAGE_READ_HOST:
STORAGE_READ_PROTOCOL:
STORAGE_TYPE:
secrets:
- source: bulwark_aws_access_key_id
target: /run/secrets/aws_access_key_id
- source: bulwark_aws_secret_access_key
target: /run/secrets/aws_secret_access_key
- source: bulwark_s3_access_key_id
target: /run/secrets/s3_access_key_id
- source: bulwark_s3_secret_access_key
target: /run/secrets/s3_secret_access_key
- source: bulwark_s3_region
target: /run/secrets/s3_region
- source: bulwark_database_password
target: /run/secrets/database_password
- source: bulwark_ezid_password
target: /run/secrets/ezid_password
- source: bulwark_honeybadger_api_key
target: /run/secrets/honeybadger_api_key
- source: bulwark_git_user_pass
target: /run/secrets/git_user_pass
- source: bulwark_imaging_user_pass
target: /run/secrets/imaging_user_pass
- source: bulwark_secret_key_base
target: /run/secrets/secret_key_base
- source: bulwark_publishing_token
target: /run/secrets/publishing_token
volumes:
- '${LOCAL_DATA}:${REMOTE_DATA}'
- '${LOCAL_WORKSPACE}:${REMOTE_WORKSPACE}'
- 'sceti_completed_4:${SCETI_COMPLETED_4_HARVESTING_ENDPOINT_REMOTE}'
- 'sceti_completed_5:${SCETI_COMPLETED_5_HARVESTING_ENDPOINT_REMOTE}'
volumes:
sceti_completed_4:
external: true
sceti_completed_5:
external: true
redis:
db: