forked from quran/quran.com-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (45 loc) · 1.24 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
version: '3'
services:
api:
build:
context: .
args:
- env=development
- bundle_opts=--without test
image: qurancomapi_api:dev-latest
volumes:
- .:/app
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgres://quran_dev:quran_password@postgres:5432/quran_db
- ELASTICSEARCH_HOST=elasticsearch
- SENTRY_DSN=
- SECRET_KEY_BASE=abcdefa
depends_on:
- postgres
- elasticsearch
postgres:
image: quran/quran.com-database:d7480fa
environment:
- POSTGRES_DB=quran_db
- POSTGRES_USER=quran_dev
- POSTGRES_PASSWORD=quran_password # to create db
- PGPASSWORD=quran_password # to pg_restore dump
elasticsearch:
image: quran/quran.com-elasticsearch:d37a1ed
environment:
- bootstrap.memory_lock=false # reservations below takes care of that
- "ES_JAVA_OPTS=
-Xms700m
-Xmx700m
-Xss256k
-server
-Djava.net.preferIPv4Stack=true
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+HeapDumpOnOutOfMemoryError
"
- ES_HOME=/usr/local/elasticsearch