-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
130 lines (122 loc) · 2.96 KB
/
docker-compose.yml
File metadata and controls
130 lines (122 loc) · 2.96 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
---
version: '3.7'
volumes:
pg_data:
services:
dev:
image: arclight-app-development
build:
dockerfile: .dockerfiles/arclight-app-development.dockerfile
context: .
depends_on:
# - db
- solr
volumes:
- .:/opt/app-root
ports:
- "3000:3000" # Rails
- "1234:1234" # RubyMine
- "26162:26162" # RubyMine
environment:
# - DATABASE_URL=postgresql://postgres:arclight@db/arclight
# - GOOGLE_ANALYTICS_DEBUG=${GOOGLE_ANALYTICS_DEBUG:-false}
# - GOOGLE_ANALYTICS_TRACKING_ID=${GOOGLE_ANALYTICS_TRACKING_ID}
# - REDIS_URL=redis://redis:6379
- SOLR_URL=http://solr:8983/solr/arclight
- RAILS_ENV=development
# - FINDING_AID_DATA=./sample-ead
solr:
image: solr:8-slim
ports:
- "8983:8983"
environment:
- SOLR_JAVA_MEM=-Xms1024m -Xmx1024m
- SOLR_HEAP=1024m
volumes:
# - ./solr/arclight:/var/solr/data/arclight
- ./solr/arclight/conf:/solr_config:ro
command:
- solr-precreate
- arclight
- /solr_config
db:
# ports:
# - "5432:5432"
image: postgres:12-alpine
environment:
- POSTGRES_DB=arclight
- POSTGRES_PASSWORD=arclight
volumes:
- pg_data:/var/lib/postgresql/data
app:
image: arclight-app-production
build:
dockerfile: .dockerfiles/arclight-app-production.dockerfile
context: .
depends_on:
- db
- solr
volumes:
- .:/opt/app-root
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://postgres:arclight@db/arclight
- GOOGLE_ANALYTICS_DEBUG=${GOOGLE_ANALYTICS_DEBUG:-false}
- GOOGLE_ANALYTICS_TRACKING_ID=${GOOGLE_ANALYTICS_TRACKING_ID}
- REDIS_URL=redis://redis:6379
- SOLR_URL=http://solr:8983/solr/arclight
- RAILS_ENV=production
- FINDING_AID_DATA=./sample-ead
redis:
image: redis:6-buster
# ports:
# - "6379:6379"
resque:
image: arclight-app-production
# ports:
# - "8282:8282"
depends_on:
- db
- redis
- solr
volumes:
- .:/opt/app-root
environment:
- DATABASE_URL=postgresql://postgres:arclight@db/arclight
- FINDING_AID_DATA=./sample-ead
- RAILS_ENV=development
- REDIS_URL=redis://redis:6379
- SOLR_URL=http://solr:8983/solr/arclight
healthcheck:
disable: true
stop_signal: SIGQUIT
command:
- bundle
- exec
- rake
- resque:pool
resque-web:
image: arclight-app-production
ports:
- "8080:8080"
depends_on:
- redis
volumes:
- .:/opt/app-root
environment:
- DATABASE_URL=postgresql://postgres:arclight@db/arclight
- RAILS_ENV=development
- REDIS_URL=redis://redis:6379
- SOLR_URL=http://solr:8983/solr/arclight
healthcheck:
disable: true
command:
- bundle
- exec
- resque-web
- '-p'
- '8080'
- '-r'
- redis:6379
- '-F'