-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yml
85 lines (80 loc) · 1.66 KB
/
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
---
services:
app:
depends_on:
- db
- solr
image: dromedary
build:
dockerfile: Dockerfile
context: .
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
ports:
- "127.0.0.1:3000:3000" # Rails
- "1111:1111"
- "1234:1234" # RubyMine
- "26162:26162" # RubyMine
environment:
- SOLR_ROOT=http://solr:8983/
- SOLR_COLLECTION=med-preview
- SOLR_COLLECTION_BASE=med
- SOLR_USERNAME=solr
- SOLR_PASSWORD=SolrRocks
- SOLR_REPLICATION_FACTOR=1
- DATA_ROOT=/mec/data
- BUILD_ROOT=/mec/data/build
- ALLOW_ADMIN_ACCESS=1
- RAILS_RELATIVE_URL_ROOT=/m/middle-english-dictionary
- TZ=America/New_York
- "DIRECT_URLS_TO_SOLR_REPLICAS=http://solr:8983 http://solr:8983"
- MANUALLY_BUILD_SUGGESTERS=true
- PAUSE_TIME=10
env_file:
- path: .app.env
required: false
volumes:
- .:/opt/app
- data:/mec/data
command:
- bin/rails
- s
- -b
- 0.0.0.0
db:
image: postgres:12-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/db
volumes:
- db:/var/lib/postgresql/data
solr:
build: solr/.
ports:
- "9172:8983"
environment:
- ZK_HOST=zoo:2181
depends_on:
- zoo
command: solr-foreground
zoo:
image: zookeeper
ports:
- 9091:2181
environment:
ZOO_MY_ID: 1
volumes:
data:
driver_opts:
type: none
device: ${PWD}/data
o: bind
db:
solr:
driver_opts:
type: none
device: ${PWD}/solr_data
o: bind