forked from projectblacklight/blacklight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (33 loc) · 934 Bytes
/
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
version: "3.7"
services:
app:
build:
context: .
dockerfile: .docker/app/Dockerfile
args:
- ALPINE_RUBY_VERSION
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
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"