-
Notifications
You must be signed in to change notification settings - Fork 2
/
dip.yml
66 lines (53 loc) · 1.1 KB
/
dip.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
version: '2'
environment:
RAILS_ENV: development
DOCKER_TLD: docker
APP_HOST: dip-rails.${DOCKER_TLD}
WEB_PORT: 3000
WEBPACK_PORT: 3035
MAIL_WEB_PORT: 1080
compose:
files:
- docker-compose.yml
- docker-compose.dip.yml
interaction:
bash:
service: backend
command: /bin/bash
compose_run_options: [no-deps]
bundle:
service: backend
command: bundle
yarn:
service: webpack
command: yarn
rake:
service: backend
command: bundle exec rake
rails:
service: backend
command: bundle exec rails
subcommands:
s:
service: rails
compose_run_options: [service-ports]
webpack:
service: webpack
compose_run_options: [service-ports, use-aliases]
sidekiq:
service: sidekiq
rspec:
service: backend
environment:
RAILS_ENV: test
command: bundle exec rspec
psql:
service: postgres
command: psql -h postgres -U postgres
'redis-cli':
service: redis
command: redis-cli -h redis
provision:
- dip compose down --volumes
- dip compose up -d postgres redis
- dip bash -c ./bin/setup