forked from projectblacklight/blacklight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (37 loc) · 1.23 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
version: "3.7"
services:
app:
build:
context: .
dockerfile: .docker/app/Dockerfile
args:
- ALPINE_RUBY_VERSION
# mounting . is causing seg-fault on macosx
#volumes:
#- .:/app
depends_on:
- solr
ports:
- "3000:3000"
environment:
- SOLR_URL # Set via environment variable or use default defined in .env file
- RAILS_VERSION # Set via environment variable or use default defined in .env file
- VIEW_COMPONENT_VERSION # Set via environment variable or use default defined in .env file
- SOLR_ENV=docker-compose
- ENGINE_CART_RAILS_OPTIONS=--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test --skip-solr
solr:
environment:
- SOLR_PORT # Set via environment variable or use default defined in .env file
- SOLR_VERSION # Set via environment variable or use default defined in .env file
image: "solr:${SOLR_VERSION}"
volumes:
- $PWD/lib/generators/blacklight/templates/solr/conf:/opt/solr/conf
ports:
- "${SOLR_PORT}:8983"
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- blacklight-core
- /opt/solr/conf
- "-Xms256m"
- "-Xmx512m"