-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (63 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
75 lines (63 loc) · 1.27 KB
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:
postgres:
image: postgres:11-alpine
ports:
- '5432:5432'
volumes:
- db_data_rails_template:/var/lib/postgresql/data:cached
networks:
- internal
redis:
image: redis:alpine
networks:
- internal
mailcatcher:
image: schickling/mailcatcher
ports:
- '1080:1080'
- '1025:1025'
networks:
- internal
web:
tty: true
stdin_open: true
build:
context: .
dockerfile: Dockerfile-dev
command: bundle exec rails start
ports:
- '5000:5000'
- '8080:8080'
depends_on:
- postgres
- redis
volumes:
- rails_template-sync:/rails_template:nocopy
- gem_store_rails_template:/bundle:cached
- .:/rails_template:cached
networks:
- internal
- external
sidekiq:
depends_on:
- postgres
- redis
build:
context: .
dockerfile: Dockerfile-dev
command: bundle exec sidekiq -C config/sidekiq.yml
volumes:
- gem_store_rails_template:/bundle:cached
- .:/rails_template:cached
networks:
- internal
volumes:
rails_template-sync:
external: true
gem_store_rails_template:
external: true
db_data_rails_template:
networks:
internal:
external: