forked from projectblacklight/spotlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (70 loc) · 1.51 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
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
version: '3.7'
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'
depends_on:
- postgres
volumes:
- .:/spotlight/engine
- spotlight_app:/spotlight/app
networks:
- spotlight
postgres:
image: bitnami/postgresql:12.10.0
restart: always
env_file:
- .env
volumes:
- spotlight_db:/bitnami/postgresql
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:
spotlight_db:
spotlight_redis:
spotlight_solr:
networks:
spotlight:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-spotlight