-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathdocker-compose-dassie.yml
More file actions
220 lines (210 loc) · 5.6 KB
/
Copy pathdocker-compose-dassie.yml
File metadata and controls
220 lines (210 loc) · 5.6 KB
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
services:
web:
build:
context: .
target: hyrax-engine-dev
args:
- EXTRA_APK_PACKAGES=git less
- BUNDLE_GEMFILE=Gemfile.dassie
image: ghcr.io/samvera/hyrax-dev:${GITHUB_SHA:-latest}
command: sh -c 'bundle exec puma -v -b tcp://0.0.0.0:3000'
stdin_open: true
tty: true
user: root
env_file:
- .dassie/.env
environment:
- RAILS_ROOT=/app/samvera/hyrax-webapp
- HYRAX_FLEXIBLE=false
- HYRAX_FLEXIBLE_CLASSES=
- HYRAX_DISABLE_INCLUDE_METADATA=false
depends_on:
# worker (sidekiq) is intentionally omitted: the test suite uses the
# ActiveJob :test adapter (see spec/spec_helper.rb), so jobs run
# in-process and a live sidekiq container only wastes memory in CI.
chrome:
condition: service_started
fcrepo:
condition: service_healthy
fits:
condition: service_healthy
memcached:
condition: service_started
postgres:
condition: service_healthy
redis:
condition: service_healthy
solr:
condition: service_healthy
ports:
- 3000:3000
- 9876:9876
volumes:
- ./bin:/app/samvera
- .dassie:/app/samvera/hyrax-webapp
- .:/app/samvera/hyrax-engine
- bundle:/app/bundle
- clamav:/var/lib/clamav
- hyrax-derivatives:/app/samvera/hyrax-webapp/derivatives
- hyrax-uploads:/app/samvera/hyrax-webapp/uploads
- rails-public:/app/samvera/hyrax-webapp/public
- rails-tmp:/app/samvera/hyrax-webapp/tmp
networks:
- hyrax
worker:
image: ghcr.io/samvera/hyrax-dev:${GITHUB_SHA:-latest}
entrypoint: worker-entrypoint.sh
command: sh -c 'bundle exec sidekiq'
user: root
env_file:
- .dassie/.env
depends_on:
fcrepo:
condition: service_healthy
fits:
condition: service_healthy
memcached:
condition: service_started
postgres:
condition: service_healthy
redis:
condition: service_healthy
solr:
condition: service_healthy
volumes:
- ./bin:/app/samvera
- .dassie:/app/samvera/hyrax-webapp
- .:/app/samvera/hyrax-engine
- bundle:/app/bundle
- clamav:/var/lib/clamav
- hyrax-derivatives:/app/samvera/hyrax-webapp/derivatives
- hyrax-uploads:/app/samvera/hyrax-webapp/uploads
- rails-public:/app/samvera/hyrax-webapp/public
- rails-tmp:/app/samvera/hyrax-webapp/tmp
networks:
- hyrax
chrome:
image: selenium/standalone-chromium:4
environment:
# - START_XVFB=false
- SE_NODE_SESSION_TIMEOUT=800
- SE_ENABLE_TRACING=false
- SE_ENABLE_BROWSER_LEFTOVERS_CLEANUP=true
- SE_BROWSER_ARGS_DISABLE_DSHM=--disable-dev-shm-usage
- SE_BROWSER_ARGS_HEADLESS=--headless=new
# logging:
# driver: none
volumes:
- /dev/shm:/dev/shm
shm_size: 2g
ports:
- "4445:4444"
- "5960:5900"
networks:
- hyrax
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_USER=hyrax_user
- POSTGRES_PASSWORD=hyrax_password
- POSTGRES_DB=hyrax
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U \"$$POSTGRES_USER\""]
interval: 5s
timeout: 5s
retries: 20
networks:
- hyrax
fcrepo:
image: ghcr.io/samvera/fcrepo4:4.7.5
volumes:
- fcrepo:/data:cached
ports:
- 8080:8080
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8080/rest/ || exit 1"]
interval: 10s
timeout: 5s
retries: 30
networks:
- hyrax
fits:
image: ghcr.io/samvera/fitsservlet:1.6.0
ports:
- 8080
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8080/fits/version || exit 1"]
interval: 10s
timeout: 5s
retries: 20
networks:
- hyrax
memcached:
image: bitnamilegacy/memcached
ports:
- "11211:11211"
networks:
- hyrax
redis:
image: bitnamilegacy/redis:6.2
env_file:
- .dassie/.env
volumes:
- redis:/bitnamilegacy/redis/data
healthcheck:
test: ["CMD-SHELL", "redis-cli -a \"$$REDIS_PASSWORD\" ping | grep -q PONG"]
interval: 5s
timeout: 5s
retries: 20
networks:
- hyrax
solr:
image: solr:9.9
env_file:
- .dassie/.env
environment:
# Cap the Solr heap so it doesn't auto-size off host RAM and starve the
# rest of the stack on memory-constrained CI runners. The test index is
# tiny; 512m is ample.
- SOLR_JAVA_MEM=-Xms512m -Xmx512m
ports:
- 8983:8983
command:
- sh
- "-c"
- "precreate-core hyrax_test /opt/solr/server/configsets/hyraxconf; precreate-core hyrax-valkyrie-test /opt/solr/server/configsets/hyraxconf; precreate-core hyrax-valkyrie-dev /opt/solr/server/configsets/hyraxconf; solr-precreate hyrax /opt/solr/server/configsets/hyraxconf"
volumes:
- solr_home:/var/solr:cached
- .dassie/solr:/opt/solr/server/configsets/hyraxconf
ulimits:
nofile:
soft: 65536
hard: 524288
healthcheck:
test: ["CMD-SHELL", "curl -sf 'http://localhost:8983/solr/admin/cores?action=STATUS' || exit 1"]
interval: 5s
timeout: 5s
retries: 30
networks:
- hyrax
volumes:
bundle:
clamav:
db:
fcrepo:
hyrax-derivatives:
hyrax-uploads:
rails-public:
rails-tmp:
redis:
solr_home:
networks:
hyrax:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-hyrax