-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
46 lines (46 loc) · 1016 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
36
37
38
39
40
41
42
43
44
45
46
version: '3.5'
x-web_env: &web_env
environment:
CI: "true"
SETTINGS__solr__username: catalog
SETTINGS__solr__password: catalog
SETTINGS__solr__host: solr
SETTINGS__solr__collection: 'psul_catalog'
services:
web:
tty: true
stdin_open: true
<<: *web_env
depends_on:
- solr
command:
- /app/bin/startup
build:
context: .
target: dev
volumes:
- bundle-data:/app/vendor/bundle
- node-data:/app/node_modules
- type: bind
source: ./
target: /app/
ports:
- "${APP_PORT:-3000}:3000"
solr:
image: harbor.k8s.libraries.psu.edu/library/solr:9.5.0
environment:
SOLR_STOP_WAIT: 1
restart: always
volumes:
- solr-data:/var/solr
ports:
- ${SOLR_PORT:-8983}:8983
command: [
"/bin/bash",
"-c",
"solr -c && solr auth enable -credentials catalog:catalog -z localhost:9983; solr stop && solr -c -f",
]
volumes:
bundle-data:
node-data:
solr-data: