-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (70 loc) · 1.68 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
64
65
66
67
68
69
70
71
72
73
74
version: '3'
services:
app:
image: dinanashaat/chatapp
ports:
- 3000:3000
command: bash -c "rm -f tmp/pids/server.pid && rails db:drop db:create db:migrate && bundle exec whenever --update-crontab && bundle exec rails s -p 3000 -b '0.0.0.0'"
depends_on:
- mysql
- redis
- elasticsearch
- sidekiq
links:
- redis
- mysql
- elasticsearch
- sidekiq
environment:
- REDIS_URL=redis://redis:6379/0
- ELASTICSEARCH_URL=elasticsearch
- RAILS_ENV=development
restart: always
mysql:
image: mysql:5.6.34
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=chatAppDev
redis:
image: redis:4.0-alpine
command: redis-server
ports:
- 6379:6379
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.5.3
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- xpack.graph.enabled=false
- xpack.watcher.enabled=false
- REDIS_URL=redis://redis:6379/0
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
sidekiq:
image: dinanashaat/chatapp
links:
- redis
- elasticsearch
depends_on:
- redis
- elasticsearch
command: "sidekiq"
environment:
- REDIS_URL=redis://redis:6379/0
- ELASTICSEARCH_URL=elasticsearch
volumes:
esdata1:
driver: local
esdata2:
driver: local