-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
76 lines (66 loc) · 1.94 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
version: '3'
services:
app:
build:
args:
- VERSION=${VERSION-latest}
context: ./
environment:
- RAILS_LOG_TO_STDOUT=true
- RAILS_SERVE_STATIC_FILES=true
- SECRET_KEY_BASE=changeme
image: 'mikeantonelli/docker-rails-compose:${VERSION-latest}'
ports:
- "3000"
assets:
build:
args:
- VERSION=${VERSION-latest}
context: ./
dockerfile: ./docker/Dockerfile.assets
image: 'mikeantonelli/docker-rails-compose:assets-${VERSION-latest}'
test:
command: sh -c "bundle exec rspec"
environment:
- RAILS_ENV=test
image: 'mikeantonelli/docker-rails-compose:${VERSION-latest}'
development:
command: sh -c 'rm -rf ./tmp && bundle exec bin/rails s -b 0.0.0.0'
environment:
- RAILS_ENV=development
image: 'mikeantonelli/docker-rails-compose:${VERSION-latest}'
ports:
- 3000:3000
volumes:
- ./app:/opt/app
- ./public:/opt/public
webpack:
command: sh -c 'rm -rf public/packs/* || true && bundle exec rake react_on_rails:locale && bin/webpack -w'
image: 'mikeantonelli/docker-rails-compose:assets-${VERSION-latest}'
volumes:
- ./app:/opt/app
- ./public:/opt/public
debug:
command: sh -c 'rm -rf ./tmp && bundle exec rdebug-ide --host 0.0.0.0 --port 1234 --dispatcher-port 26162 -- bin/rails s -b 0.0.0.0'
environment:
- RAILS_ENV=development
image: 'mikeantonelli/docker-rails-compose:${VERSION-latest}'
ports:
- 1234:1234
- 3000:3000
- 26162:26162
volumes:
- ./app:/opt/app
- ./public:/opt/public
node:
build:
context: ./
dockerfile: ./docker/Dockerfile.node
image: 'mikeantonelli/docker-rails-compose:node-${VERSION-latest}'
ruby:
build:
args:
- VERSION=${VERSION-latest}
context: ./
dockerfile: ./docker/Dockerfile.ruby
image: 'mikeantonelli/docker-rails-compose:ruby-${VERSION-latest}'