-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
92 lines (92 loc) · 1.84 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
services:
app:
depends_on:
- db
- solr
- redis
image: umich-arclight
build:
dockerfile: Dockerfile
context: .
ports:
- "3000:3000" # Rails
- "1234:1234" # RubyMine
- "26162:26162" # RubyMine
environment:
- FINDING_AID_INGEST=true
- REDIS_URL=redis://redis:6379
volumes:
- .:/opt/app
- data:/var/opt/app/data
- gems:/var/opt/app/gems
db:
ports:
- "5432:5432"
image: postgres:12-alpine
environment:
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/db
volumes:
- db-data:/var/lib/postgresql/data
solr:
image: solr:8-slim
ports:
- "8983:8983"
environment:
- SOLR_JAVA_MEM=-Xms1024m -Xmx1024m
- SOLR_HEAP=1024m
volumes:
- solr-conf:/opt/solr/server/solr/configsets/umich-arclight
- solr-data:/var/solr
redis:
image: redis:6-buster
ports:
- "6379:6379"
volumes:
- redis-data:/data
resque:
depends_on:
- db
- solr
- redis
image: umich-arclight
ports:
- "8282:8282"
environment:
- REDIS_URL=redis://redis:6379
volumes:
- .:/opt/app
- data:/var/opt/app/data
- gems:/var/opt/app/gems
healthcheck:
disable: true
stop_signal: SIGQUIT
command: bundle exec rake resque:pool
resque-web:
depends_on:
- redis
image: umich-arclight
ports:
- "8080:8080"
volumes:
- .:/opt/app
- gems:/var/opt/app/gems
healthcheck:
disable: true
command: bundle exec resque-web -p 8080 -r redis:6379 -F
volumes:
data:
driver_opts:
type: none
device: ${PWD}/data
o: bind
gems:
db-data:
solr-conf:
driver_opts:
type: none
device: ${PWD}/solr/arclight
o: bind
solr-data:
redis-data: