-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (62 loc) · 1.44 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
version: "3.7"
services:
app:
image: sparkymat/markit:latest
ports:
- "3000:3000"
working_dir: /app
depends_on:
- db
- redis
- elasticsearch
restart: always
links:
- db
- redis
- elasticsearch
environment:
RAILS_SERVE_STATIC_FILES: 1
RAILS_ENV: production
SECRET_KEY_BASE: foobar
DATABASE_URL: postgresql://foobar:foobar@db/markit?pool=5
REDIS_URL: redis://redis:6379/0
ELASTICSEARCH_HOST: elasticsearch
worker:
image: sparkymat/markit-worker:latest
working_dir: /app
depends_on:
- app
restart: always
links:
- db
- redis
- elasticsearch
environment:
RAILS_ENV: production
SECRET_KEY_BASE: foobar
DATABASE_URL: postgresql://foobar:foobar@db/markit?pool=5
REDIS_URL: redis://redis:6379/0
ELASTICSEARCH_HOST: elasticsearch
db:
image: postgres:13
restart: always
environment:
POSTGRES_USER: foobar
POSTGRES_PASSWORD: foobar
POSTGRES_DB: markit
redis:
image: redis:alpine
environment:
- REDIS_REPLICATION_MODE=master
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
environment:
cluster.initial_master_nodes: es01
cluster.name: es-cluster
node.name: es01
bootstrap.memory_lock: 'true'
ES_JAVA_OPTS: -Xms512m -Xmx512m
ulimits:
memlock:
soft: -1
hard: -1