-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
52 lines (52 loc) · 1.27 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
version: '3.0'
services:
redis:
image: redis:alpine
ports:
- "6379:6379"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
environment:
- xpack.monitoring.enabled=false
- xpack.graph.enabled=false
- xpack.watcher.enabled=false
- xpack.security.enabled=false
- Des.insecure.allow.root=true
ulimits:
nofile:
soft: 65536
hard: 65536
volumes:
- ./elasticsearch/data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
kibana:
image: docker.elastic.co/kibana/kibana:6.2.4
ports:
- '5601:5601'
sidekiq:
build: .
command: bash -c "bin/bundle install && bin/bundle exec sidekiq"
environment:
RAILS_ENV: "development"
REDIS_URL: "redis://redis:6379"
volumes:
- .:/tornado
depends_on:
- redis
- tornado
tornado:
build: .
command: bash -c "bin/bundle install && bin/rails db:migrate && rm -f tmp/pids/server.pid && bin/bundle exec rails s -p 3000 -b '0.0.0.0'"
environment:
RAILS_ENV: "development"
REDIS_URL: "redis://redis:6379"
volumes:
- .:/tornado
ports:
- "3000:3000"
depends_on:
- redis
- elasticsearch
- kibana