-
Notifications
You must be signed in to change notification settings - Fork 134
Expand file tree
/
Copy pathdocker-compose-allinson.yml
More file actions
176 lines (167 loc) · 4.15 KB
/
docker-compose-allinson.yml
File metadata and controls
176 lines (167 loc) · 4.15 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
# Requires Docker Compose v2
name: allinson
services:
web:
build:
context: .
target: hyrax-engine-dev
args:
- EXTRA_APK_PACKAGES=git less
- BUNDLE_GEMFILE=Gemfile.allinson
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:
- .koppie/.env
environment:
- APP_NAME=allinson
- RAILS_ROOT=/app/samvera/hyrax-webapp
- HYRAX_FLEXIBLE=true
- HYRAX_FLEXIBLE_CLASSES=Hyrax::AdministrativeSet,CollectionResource,FileSet,GenericWork,Monograph
- HYRAX_DISABLE_INCLUDE_METADATA=true
depends_on:
- worker
- chrome
- fits
- memcached
- postgres
- redis
- solr
ports:
- 3003:3000
- 9879:9876
- 1051:1048
volumes:
- ./bin:/app/samvera
- .koppie:/app/samvera/hyrax-webapp
- .:/app/samvera/hyrax-engine
- bundle:/app/bundle
- clamav:/var/lib/clamav
- hyrax-storage:/app/samvera/hyrax-webapp/storage
- 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:
- allinson
worker:
image: ghcr.io/samvera/hyrax-dev:${GITHUB_SHA:-latest}
entrypoint: worker-entrypoint.sh
command: sh -c 'bundle exec sidekiq'
user: root
env_file:
- .koppie/.env
environment:
- APP_NAME=allinson
- RAILS_ROOT=/app/samvera/hyrax-webapp
- HYRAX_FLEXIBLE=true
- HYRAX_FLEXIBLE_CLASSES=Hyrax::AdministrativeSet,CollectionResource,FileSet,GenericWork,Monograph
- HYRAX_DISABLE_INCLUDE_METADATA=true
depends_on:
- fits
- memcached
- postgres
- redis
- solr
volumes:
- ./bin:/app/samvera
- .koppie:/app/samvera/hyrax-webapp
- .:/app/samvera/hyrax-engine
- bundle:/app/bundle
- clamav:/var/lib/clamav
- hyrax-storage:/app/samvera/hyrax-webapp/storage
- 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:
- allinson
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:
- "4448:4444"
- "5963:5900"
- "7963:7900"
networks:
- allinson
postgres:
image: postgres:15-alpine
env_file:
- .koppie/.env
ports:
- "5435:5432"
volumes:
- db:/var/lib/postgresql/data
networks:
- allinson
fits:
image: ghcr.io/samvera/fitsservlet:1.6.0
ports:
- 8080
networks:
- allinson
memcached:
image: bitnamilegacy/memcached
ports:
- "11214:11211"
networks:
- allinson
redis:
image: bitnamilegacy/redis:6.2
env_file:
- .koppie/.env
volumes:
- redis:/bitnamilegacy/redis/data
networks:
- allinson
solr:
image: solr:9.9
env_file:
- .koppie/.env
ports:
- 8986:8983
command:
- sh
- "-c"
- "precreate-core koppie-test /opt/solr/server/configsets/hyraxconf; solr-precreate koppie /opt/solr/server/configsets/hyraxconf"
volumes:
- solr_home:/var/solr:cached
- .koppie/solr:/opt/solr/server/configsets/hyraxconf
ulimits:
nofile:
soft: 65536
hard: 524288
networks:
- allinson
volumes:
bundle:
clamav:
db:
hyrax-storage:
hyrax-derivatives:
hyrax-uploads:
rails-public:
rails-tmp:
redis:
sidekiq-public:
sidekiq-tmp:
solr_home:
networks:
allinson:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-allinson