-
Notifications
You must be signed in to change notification settings - Fork 65
/
compose.yaml
59 lines (55 loc) · 1.23 KB
/
compose.yaml
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
services:
web:
build:
context: .
image: spotlight
stdin_open: true
tty: true
restart: always
env_file:
- .env
volumes:
- .:/spotlight/engine
- spotlight_app:/spotlight/app
ports:
- 3000:3000
depends_on:
- db_migrate
- solr
networks:
- spotlight
db_migrate:
image: spotlight
env_file:
- .env
environment:
SKIP_TRANSLATION: "yes"
entrypoint: sh -c '/spotlight/engine/bin/db-migrate-seed.sh'
volumes:
- .:/spotlight/engine
- spotlight_app:/spotlight/app
networks:
- spotlight
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/spotlight/templates/solr/conf:/opt/solr/conf
ports:
- "${SOLR_PORT}:8983"
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- blacklight-core
- /opt/solr/conf
networks:
- spotlight
volumes:
spotlight_app:
networks:
spotlight:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-spotlight