-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
63 lines (62 loc) · 1.1 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: '2'
services:
db:
image: postgres:9.6.1
ports:
- 5432:5432
app:
build:
context: .
dockerfile: docker/rails/Dockerfile
volumes:
- .:/usr/src/app
ports:
- 3000:3000
depends_on:
- db
- gems
volumes_from:
- gems
spring:
build:
context: .
dockerfile: docker/rails/Dockerfile
command: bundle exec spring server
volumes:
- .:/usr/src/app
depends_on:
- gems
volumes_from:
- gems
environment:
- GEM_PATH=/ruby_gems
- GEM_HOME=/ruby_gems
gems:
image: busybox
command: tail -f /dev/null
volumes:
- /ruby_gems
redis:
image: redis
sidekiq:
build:
context: .
dockerfile: docker/rails/Dockerfile
volumes:
- .:/usr/src/app
depends_on:
- db
- gems
volumes_from:
- gems
command: bundle exec sidekiq -c 5
environment:
- GEM_PATH=/ruby_gems
- GEM_HOME=/ruby_gems
ngrok:
tty: true
build:
context: docker/ngrok
dockerfile: Dockerfile
ports:
- 4040:4040