forked from IU-Libraries-Joint-Development/essi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
173 lines (160 loc) · 4.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
173 lines (160 loc) · 4.28 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
version: '3.7'
x-app:
&default-app
image: "${REGISTRY_HOST}${REGISTRY_URI}:${TAG}"
# image: iublibtech/essi:master
build:
context: ./
dockerfile: Dockerfile
target: essi-dev
args:
USER_ID: ${USER_ID:-1000}
GROUP_ID: ${GROUP_ID:-1000}
environment:
IN_DOCKER: 'true'
stdin_open: true
tty: true
env_file:
- .env.development
- .env
volumes:
- .:/app:cached
- rails_cache:/app/tmp/cache
- ./config/essi_config.docker.yml:/run/secrets/essi_config.yml
depends_on:
- redis_jobs
- solr
- fcrepo
- db
- s3proxy
- cantaloupe
- chrome
services:
web:
image: nginxinc/nginx-unprivileged:stable-alpine
volumes:
- ./essi-nginx.nginx:/etc/nginx/conf.d/essi-nginx.conf
- ./tmp/certs:/etc/nginx/certs
ports:
- "3000:3000"
depends_on:
- essi
- worker
essi:
<< : *default-app
command: bash -l -c "bundle exec rake db:migrate db:seed yarn:install && bundle exec rails s"
environment:
VIRTUAL_HOST: essi.docker
VIRTUAL_PORT: 3000
IN_DOCKER: 'true'
HUB_URL: http://chrome:4444/wd/hub
worker:
<< : *default-app
command: sidekiq -c 10
db:
image: mysql:5.7
ports:
- '3307:3306'
volumes:
- mysql:/var/lib/mysql
- './db/50-mysql-create-db.sql:/docker-entrypoint-initdb.d/50-mysql-create-db.sql'
environment:
MYSQL_ROOT_PASSWORD: essi
MYSQL_USER: essi
MYSQL_PASSWORD: essi
s3proxy:
image: andrewgaul/s3proxy
ports:
- '9000:80'
environment:
S3PROXY_AUTHORIZATION: none
volumes:
- './staged_files:/data'
cantaloupe:
image: iublibtech/cantaloupe
ports:
- '8182:8182'
environment:
HTTP_HTTP2_ENABLED: "true"
HTTPS_HTTP2_ENABLED: "true"
ENDPOINT_IIIF_CONTENT_DISPOSITION: none
SOURCE_STATIC: HttpSource
SOURCE_DELEGATE: "false"
HTTPSOURCE_LOOKUP_STRATEGY: ScriptLookupStrategy
HTTPSOURCE_CHUNKING: "false"
DELEGATE_SCRIPT_ENABLED: "true"
DELEGATE_SCRIPT_CACHE_ENABLED: "true"
DELEGATE_SCRIPT_PATHNAME: /cantaloupe/delegate/delegates.rb
FEDORA_BASE: http://fcrepo:8080
FEDORA_PATH: /rest/dev
PROCESSOR_SELECTION_STRATEGY: ManualSelectionStrategy
PROCESSOR_MANUAL_SELECTIONSTRATEGY_JP2: OpenJpegProcessor
PROCESSOR_STREAM_RETRIEVAL_STRATEGY: CacheStrategy
CACHE_SERVER_SOURCE_ENABLED: "true"
CACHE_SERVER_SOURCE: FilesystemCache
CACHE_SERVER_SOURCE_TTL_SECONDS: 3600
CACHE_SERVER_WORKER_ENABLED: "true"
CACHE_SERVER_WORKER_INTERVAL: 3600
FILESYSTEMCACHE_PATHNAME: /var/cache/cantaloupe
CACHE_SERVER_DERIVATIVE_ENABLED: "true"
CACHE_SERVER_INFO_ENABLED: "true"
CACHE_SERVER_DERIVATIVE: RedisCache
REDISCACHE_HOST: redis_cache
REDISCACHE_PORT: 6379
REDISCACHE_SSL: "false"
REDISCACHE_PASSWORD: ""
REDISCACHE_DATABASE: 0
HEAPCACHE_TARGET_SIZE: 256M
CACHE_SERVIER_DERIVATIVE_TTL_SECONDS: 0
CACHE_SERVER_PURGE_MISSING: "true"
LOG_APPLICATION_LEVEL: debug
LOG_ACCESS_CONSOLEAPPENDER_ENABLED: "true"
volumes:
- './cantaloupe:/cantaloupe/delegate'
depends_on:
- redis_cache
- fcrepo
redis_jobs:
image: redis:6-alpine
ports:
- '6380:6379'
volumes:
- 'redis:/data'
command: redis-server --appendonly yes --maxmemory-policy noeviction
redis_cache:
image: redis:6-alpine
ports:
- '6381:6379'
command: redis-server --maxmemory-policy allkeys-lru --maxmemory 256mb
solr:
image: solr:6.6
ports:
- "8983:8983"
volumes:
- './solr:/myconfig:delegated'
- solr:/opt/solr/server/solr/mycores
- './solr/lib/tokenizing-suggest-v1.0.1.jar:/opt/solr/contrib/tokenizing-suggest-v1.0.1.jar'
- './solr/50-precreate-cores.sh:/docker-entrypoint-initdb.d/50-precreate-cores.sh'
entrypoint:
- docker-entrypoint.sh
- solr-foreground
fcrepo:
image: ghcr.io/samvera/fcrepo4:4.7.5
volumes:
- 'fcrepo:/data'
ports:
- "8984:8080"
chrome:
image: selenium/standalone-chrome-debug:3.141.59-20200525
volumes:
- /dev/shm:/dev/shm
shm_size: 2G
ports:
- "4444:4444"
- "5959:5900"
volumes:
fcrepo:
mysql:
redis:
solr:
rails_cache: