-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathdocker-compose.yml
61 lines (55 loc) · 1.34 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
---
version: '3'
services:
postgresql:
image: postgres:9.4
volumes:
- ./../pg_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=shuttle
- POSTGRES_PASSWORD=
- POSTGRES_DB=shuttle_development
ports:
- '5432:5432'
redis:
image: redis
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.1
volumes:
- es_data:/usr/share/elasticsearch/data
ports:
- '9200:9200'
environment:
- xpack.security.enabled=false
web:
build: .
command: bundle exec rails server -e _env:RAILS_ENV -p 3000 -b 0.0.0.0
ports:
- '3000:3000'
links: &links
- postgresql:postgresql.shuttle.local
- redis:redis.shuttle.local
- elasticsearch:elasticsearch.shuttle.local
- mailcatcher:mail.shuttle.local
environment: &environment
- RAILS_ENV=development
- RACK_ENV=development
- SHUTTLE_DB_HOST=postgresql.shuttle.local
- SHUTTLE_REDIS_HOST=redis.shuttle.local
- 'SHUTTLE_ES_URL=elasticsearch.shuttle.local:9200'
- SHUTTLE_MAIL_HOST=mail.shuttle.local
volumes:
- .:/app
worker:
build: .
command: bundle exec sidekiq -C config/sidekiq.yml
links: *links
environment: *environment
mailcatcher:
image: schickling/mailcatcher
ports:
- '1025:1025'
- '1080:1080'
volumes:
postgres_data:
es_data: