-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
98 lines (92 loc) · 2.03 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
version: "3"
services:
web:
build:
context: .
args:
- RAILS_ENV=development
- PRECOMPILE_ASSETS=false
volumes:
- .:/app
entrypoint: dockerize -wait tcp://postgres:5432 -wait tcp://redis:6379 -wait tcp://elasticsearch:9200 -timeout 2m /app/docker-entrypoint.sh
command: "bin/rails server"
ports:
- "3000:3000"
links:
- postgres
- redis
- elasticsearch
- webpacker
env_file:
- .env.docker-compose
- .env
depends_on:
- postgres
- redis
- elasticsearch
sidekiq:
build:
context: .
args:
- RAILS_ENV=development
- PRECOMPILE_ASSETS=false
volumes:
- .:/app
command: dockerize -wait tcp://postgres:5432 -wait tcp://redis:6379 -wait tcp://elasticsearch:9200 -timeout 2m bundle exec sidekiq --config ./config/sidekiq.yml
links:
- postgres
- redis
- elasticsearch
env_file:
- .env.docker-compose
- .env
depends_on:
- postgres
- redis
- elasticsearch
webpacker:
build:
context: .
args:
- RAILS_ENV=development
- PRECOMPILE_ASSETS=false
volumes:
- .:/app
command: dockerize -wait tcp://postgres:5432 -wait tcp://redis:6379 -wait tcp://elasticsearch:9200 -timeout 2m sh -c "rm -rf public/packs/* || true && bin/rails react_on_rails:locale && bin/webpack-dev-server"
ports:
- "3035:3035"
links:
- postgres
- redis
- elasticsearch
env_file:
- .env.docker-compose
- .env
depends_on:
- postgres
- redis
- elasticsearch
postgres:
image: postgres:10.4-alpine
ports:
- "5433:5432"
volumes:
- "postgres:/var/lib/postgresql/data"
redis:
image: redis:4.0-alpine
volumes:
- "redis:/data"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.10
ports:
- "9201:9200"
- "9301:9300"
volumes:
- "elasticsearch:/usr/share/elasticsearch/data"
environment:
- xpack.security.enabled=false
volumes:
postgres:
redis:
elasticsearch: