-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (45 loc) · 969 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
47
48
49
50
51
52
53
version: '3.4'
volumes:
index-precreate:
db:
services:
app:
build: .
image: watzek/compass
volumes:
- index-precreate:/usr/src/geoblacklight/solr/conf
environment:
SOLR_URL: http://index:8983/solr/compass
depends_on:
- db
- db_migrate
- index
ports:
- 3000:3000
db:
image: postgres
volumes:
- db:/var/lib/postgresql/data
index:
image: solr
command: bash -c "sleep 20 && solr-precreate compass /precreate"
volumes:
- index-precreate:/precreate
mq:
image: rabbitmq:management
ports:
- 3001:15672
workers:
build: .
image: watzek/compass
command: bash -c "sleep 20 && WORKERS=GeoblacklightMessaging::GeoblacklightEventHandler rake sneakers:run"
depends_on:
- db
- db_migrate
- mq
db_migrate:
build: .
image: watzek/compass
command: bash -c "sleep 20 && rake db:migrate"
depends_on:
- db